Find file History
expiscornovus and thechriskent Added a screenshot of this text formatting (#84)
* Add files via upload

A new screenshot for text formatting based on a status column

* Delete textformatting-status.png

* Add files via upload

Added a new screenshot for view formatting based on a text field

* Update README.md

Updated the readme with a new screenshot based on the json example.
Latest commit cd9a318 Sep 10, 2018

README.md

Conditional formatting based on choice field

Summary

This example was adopted from a column formatting example, Conditional formatting based on the value in a text of choice field, with some important differences to apply the concept to list view rows. The column formatting example applies both an icon and a class to a column based on the value of @currentField. The additionalRowClass attribute in view formatting, however, only allows you to specify a class and not an icon. Additionally, since @currentField always resolves to the value of the Title field when referenced inside a view format, this sample refers to the $Status field directly to determine which class to apply to the row.

Formatting based on text field

View requirements

  • This format expects a text/choice field with the values of Done, In progress, In review, Blocked, or anything else

Sample

Solution Author(s)
json-file-name Lincoln DeMaris (Microsoft)

Version history

Version Date Comments
1.0 August 10, 2018 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Additional notes

None