Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Microsoft Lists

You're reading from   Hands-On Microsoft Lists Create custom data models and improve the way data is organized using Lists in Microsoft 365

Arrow left icon
Product type Paperback
Published in Jul 2021
Publisher Packt
ISBN-13 9781801075046
Length 356 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Rene Modery Rene Modery
Author Profile Icon Rene Modery
Rene Modery
João Ferreira João Ferreira
Author Profile Icon João Ferreira
João Ferreira
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Chapter 1: Getting Started with Microsoft Lists 2. Chapter 2: Creating Your First List FREE CHAPTER 3. Chapter 3: Microsoft Lists Core Features 4. Chapter 4: Collaborating on Microsoft Lists 5. Chapter 5: Creating Microsoft Lists Views 6. Chapter 6: Customizing Microsoft Lists 7. Chapter 7: Customizing Microsoft Lists Views 8. Chapter 8: Customizing Microsoft Lists Forms 9. Chapter 9: Integrating Microsoft Lists with the Power Platform 10. Chapter 10: Microsoft Lists for Admins and Advanced Users 11. Chapter 11: Extending Microsoft Lists Using SPFx 12. Other Books You May Enjoy

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image