youtube image
From YouTube: Extracting values for column formatting when building a custom rendering experience

Description

This PnP community demo is taken from the bi-weekly SharePoint Developer Community - General Development Special Interest Group (SIG) call recorded on February 6, 2020.

In this 11-minute video, Chris Kent, adding to his previously delivered sessions on list formatting, demonstrates using "IndexOf" and the "substring" operator to add an icon + summary status text to list column entries. This function is particularly useful when facing a long menu of choices and the options presented are a mash up of 2 or more thoughts. For example: Not Started: New, Not Started: Delayed, Not Started: Unassigned… Of course, you are free to use a bunch of "if" statements or calculated values for this conditional formatting task. Also, you are welcome to write your own json, but why not save time formatting your list by simply grabbing the generic Substring status json from the GitHub library of 80+ list formatting script samples available to you today?

Presenter: Chris Kent (DMI) | @theChrisKent

Supporting materials:
• SharePoint List Formatting Samples | https://sharepoint.github.io/sp-dev-list-formatting/
• Generic substring status formatting sample | https://github.com/SharePoint/sp-dev-list-formatting/tree/master/column-samples/generic-substring-status
• Doc Column formatting | http://aka.ms/spdev-column-formatting

All SharePoint PnP Developer Community demos: https://www.youtube.com/playlist?list=PLR9nK3mnD-OWSbg0o9a7mx_E7s2u7h_o2

Learn more about the SharePoint developer community at: http://aka.ms/sppnp.