Skip to content

Commit d67650e

Browse files
authored
Merge pull request SharePoint#963 from jmaznerMSFT/patch-1
Update column-formatting.md
2 parents d68d6cf + 21af958 commit d67650e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/declarative-customization/column-formatting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ The following image shows an example of conditional formatting applied to a numb
7474

7575
![Severity warning of 70 with orange background](../images/sp-columnformatting-conditionalbasic.png)
7676

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.
77+
This example customizes a number field to color that field yellow when its value is 70 or less. 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 or equal to 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.
7979

8080
```JSON
8181
{
@@ -86,7 +86,7 @@ Note: this example uses a binary operation with the less than operator, "<", nes
8686
"operator": "?",
8787
"operands": [
8888
{
89-
"operator": "<",
89+
"operator": "<=",
9090
"operands": [
9191
"@currentField",
9292
70
@@ -901,7 +901,7 @@ Operators specify the type of operation to perform. The following operators are
901901
- Date()
902902
- cos
903903
- sin
904-
- :
904+
- ?
905905

906906
**Binary operators** - The following are the standard arithmetic binary operators that expect two operands:
907907

@@ -924,7 +924,7 @@ Operators specify the type of operation to perform. The following operators are
924924

925925
**Conditional operator** - The conditional operator is:
926926

927-
- :
927+
- ?
928928

929929
This is to achieve an expression equivalent to a ? b : c, where if the expression a evaluates to true, then the result is b, else the result is c.
930930

0 commit comments

Comments
 (0)