Skip to content

Commit

Permalink
Added a screenshot of this text formatting (#84)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
expiscornovus authored and thechriskent committed Sep 10, 2018
1 parent 363e494 commit cd9a318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion view-samples/text-conditional-format/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

This example was adopted from a column formatting example, [Conditional formatting based on the value in a text of choice field](https://github.com/ldemaris/sp-dev-docs/blob/patch-7/docs/declarative-customization/column-formatting.md#conditional-formatting-based-on-the-value-in-a-text-or-choice-field-advanced), 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-samples/text-conditional-format/textformatting-status.png)

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

Expand All @@ -28,4 +30,4 @@ Version|Date|Comments
## Additional notes
None

<img src="https://telemetry.sharepointpnp.com/sp-dev-list-formatting/view-samples/text-conditional-format" />
<img src="https://telemetry.sharepointpnp.com/sp-dev-list-formatting/view-samples/text-conditional-format" />
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cd9a318

Please sign in to comment.