Skip to content

Commit b78c5c3

Browse files
ldemarisVesaJuvonen
authored andcommitted
Update column-formatting.md (#973)
1 parent 6f84578 commit b78c5c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/declarative-customization/column-formatting.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ 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 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.
77+
This example uses the conditional operator `?` to apply a class (`sp-field-severity--warning`) to the parent `<div />` element when the value in the current field is less than or equal to 70. This causes the field to be highlighted when the value is less than or equal to 70, and appear normally if it's greater than 70.
7978

8079
```JSON
8180
{
@@ -433,7 +432,7 @@ You can use column formatting to render quick action links next to fields. The f
433432
"@currentField.email",
434433
"?subject=Task status&body=Hey, how is your task coming along?.\r\n---\r\n",
435434
"@currentField.title",
436-
"\r\nClick this link for more info. https://msft.spoppe.com/sites/LincolnsFunHouse2/Lists/Conference%20Prep/DispForm.aspx?ID=",
435+
"\r\nClick this link for more info. http://contoso.sharepoint.com/sites/ConferencePrep/Tasks/Prep/DispForm.aspx?ID=",
437436
"[$ID]"
438437
]
439438
}

0 commit comments

Comments
 (0)