Book Image

Hands-On Microsoft Lists

By : João Ferreira, Rene Modery
5 (1)
Book Image

Hands-On Microsoft Lists

5 (1)
By: João Ferreira, Rene Modery

Overview of this book

Microsoft Lists is an extremely flexible and powerful platform for creating custom data models. Hands-On Microsoft Lists is an easy-to-read guide for those who want to get started with Lists, as well as those who are already familiar with the basic concepts and want to create custom and flexible Lists that are easily available through a web interface. This comprehensive introduction to Lists will show you how to get up to speed in no time with the help of practical guidance and examples. Complete with hands-on tutorials and projects, you’ll understand how to use and implement Microsoft Lists effectively. You’ll start by covering all the basic concepts that will help you to build your Microsoft Lists and get the most out of the platform. As you progress, you’ll explore how to customize Microsoft Lists layouts and forms. Later chapters will guide you through integrating Microsoft Lists with the Power Platform. Throughout the book, you’ll work with practical scenarios that you can use daily to improve the collaboration in your organization. By the end of this Microsoft book, you’ll have learned how to create custom data models to improve the way your data is put together, managed, and consumed in your workplace.
Table of Contents (13 chapters)

Learning from examples

Now that you have looked at the Microsoft List column formatting and view formatting schemas, it's time to start learning how to build your own JSON. There is nothing better than learning from real examples that are described and then exemplified.

Quick Tip

In the Microsoft 365 Patterns and Practices (PnP) open source repository, you can find numerous templates that you can use in your own lists or use as a starting point to build your own view formatting.

The column samples repository is available at https://github.com/pnp/sp-dev-list-formatting/tree/master/view-samples.

Conditional view formatting

One of the simplest view formattings you can do is create a custom alternate row formatting. The following code formats the even rows with a background color.

This example can also be achieved in design mode. However, by using JSON, you can customize it even further:

{
  "$schema": "https://developer.microsoft.com...