• Corinna Lins

🍰 List formatting - making lists and libraries fancy and attractive

You are using lists and libraries, and you want to make them more appealing? No problem. In this article, I want to give you an insight into the possibilities you have by using the list (view and column) formatting.

For this 🍰 of cake, you should be familiar with:

✔ Creating SharePoint or Microsoft Lists, Microsoft documentation

✔ Know what is list formatting, Microsoft Documentation

You have most likely heard of Microsoft Lists. Good News! Microsoft Lists are nothing else than SharePoint lists, but with an improved UI, available as an independent app and in Teams. When you create lists and want to make them more attractive, you can use list formatting. The procedure applies both for SharePoint Lists and Microsoft Lists.

When you want to format a list, you have two options:

1️⃣. Column formatting –customize how fields are displayed (example: add an icon to the text in a field)

2️⃣. View formatting – customize how views are displayed (example: format whole list items)

There are some basic options for adapting the column and view formatting – alternate row colors for list rows or field background colors in a column are just examples).

If they don’t fit your needs, you can extend them in advanced mode with the JSON schema. You can find on GitHub many examples. Use them as inspiration or expand the provided templates for your needs.

Examples for list formatting

Find all examples in the GitHub repository.

The SharePoint Framework Field Customizer is another option if you plan to format columns in lists. It is more powerful because you can use it to write any code to control how a field is displayed. You should use the Field Customizer for more advanced scenarios that column formatting does not support. You can take a look at the Microsoft documentation for a comparison between the two techniques.

©2020 by Corinna Lins