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
Copy file name to clipboardExpand all lines: docs/declarative-customization/column-formatting.md
+85-13Lines changed: 85 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -717,24 +717,32 @@ This examples uses operator `loopIndex` to control the margins all rows but the
717
717
718
718
The following column types support column formatting:
719
719
720
-
* Single line of text
721
-
* Number
720
+
* Calculated
722
721
* Choice
723
-
* Person or Group
724
-
* Yes/No
725
-
* Hyperlink
726
-
* Picture
722
+
* ContentType
723
+
* Counter (ID)
724
+
* Currency*
727
725
* Date/Time
726
+
* Hyperlink
727
+
* Location*
728
728
* Lookup
729
+
* Multi-Choice
730
+
* Multi-Line Text
731
+
* Multi-Person
732
+
* Number
733
+
* Person or Group
734
+
* Picture
735
+
* Single line of text
729
736
* Title (in Lists)
737
+
* Yes/No
738
+
739
+
_* Formats for these column types can only be applied through Field Settings_
730
740
731
-
The following are not currently supported:
741
+
The following are currently**not** supported:
732
742
733
743
* Managed Metadata
734
744
* Filename (in Document Libraries)
735
-
* Calculated
736
745
* Retention Label
737
-
* Currency
738
746
739
747
## Style guidelines
740
748
@@ -1257,7 +1265,7 @@ Operators specify the type of operation to perform. The following operators are
1257
1265
-`"txtContent":"=length(45)"` results in _1_
1258
1266
-`"txtContent":"=length(0)"` results in _0_
1259
1267
1260
-
-**floor**: returns the largest integer les than or equal to a given number. - _Only available in SharePoint Online_
1268
+
-**floor**: returns the largest integer less than or equal to a given number. - _Only available in SharePoint Online_
1261
1269
-`"txtContent":"=floor(45.5)"` results in _45_
1262
1270
1263
1271
-**ceiling**: rounds the given number up to the next largest whole number or integer. - _Only available in SharePoint Online_
@@ -1331,7 +1339,7 @@ The values for `txtContent`, styles, and attributes can be either strings or Exp
1331
1339
1332
1340
Will evaluate to the value of the current field.
1333
1341
1334
-
Some field types are represented as objects. To output a value from an object, refer to a particular property inside that object. For example, if the current field is a person/group field, specify `@currentField.title` to retrieve the person's name, which is normally displayed in list views. The following are the field types that are represented as objects with a list their properties.
1342
+
Some field types are represented as objects. To output a value from an object, refer to a particular property inside that object. For example, if the current field is a person/group field, specify `@currentField.title` to retrieve the person's name, which is normally displayed in list views. The following are the field types that are represented as objects with a list of their properties.
1335
1343
1336
1344
> [!NOTE]
1337
1345
> The `@currentField.title` returns a person's name by default. However, if the person field's Show Field has been adjusted, it may change the value of the `title` property. For example, a person field with the Show Field configured as Department will have the person's department for the `title` property.
@@ -1346,8 +1354,8 @@ The people field object has the following properties (with example values):
> [!NOTE] Location fields do not currently have a "Format this column" option in the list view and formats applied directly to these fields will need to be done through field settings.
1415
+
1416
+
<br/>
1417
+
1418
+
The following example shows how a ___location field might be used on a current field.
0 commit comments