You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replaced ":" with "?" and updated beginning images to be shorter (SharePoint#934)
* Replaced ":" with "?" and updated beginning images to be shorter so they render larger on small windows.
* Update column-formatting.md
Corrected schema URL
Copy file name to clipboardExpand all lines: docs/declarative-customization/column-formatting.md
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -75,15 +75,15 @@ The following image shows an example of conditional formatting applied to a numb
75
75

76
76
77
77
This example customizes a number field to color that field red when its value less than 70. This example adds a style attribute to the parent `<div />` element, specifies a CSS class (`sp-field-severity--warning`) to apply to that item if the value inside the field is less than 70, and specifies no color if the value is outside that range (in which case it will use the default color for values in that list view).
78
-
Note: this example uses a binary operation with the less than operator, "<", nested inside the conditional operation indicated by the operator, ":". Another description of the section in the following example is: If @currentField < 70 Then class = sp-field-severity--warning.
78
+
Note: this example uses a binary operation with the less than operator, "<", nested inside the conditional operation indicated by the operator, "?". Another description of the section in the following example is: If @currentField < 70 Then class = sp-field-severity--warning.
79
79
80
80
```JSON
81
81
{
82
82
"elmType": "div",
83
83
"txtContent": "@currentField",
84
84
"attributes": {
85
85
"class": {
86
-
"operator": ":",
86
+
"operator": "?",
87
87
"operands": [
88
88
{
89
89
"operator": "<",
@@ -112,12 +112,12 @@ This pattern is useful when you want different values to map to different levels
112
112
<!-- The schema URL will need to be updated when it is changed from customformatter to columnformatting -->
0 commit comments