Skip to content

Commit d5b8768

Browse files
Merge pull request SharePoint#6858 from ganesh-sanap/patch-3
Update view-formatting.md
2 parents cba93c4 + 8c7faf8 commit d5b8768

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/declarative-customization/view-formatting.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use view formatting to customize SharePoint
33
description: Customize how views in SharePoint lists and libraries are displayed by constructing a JSON object that describes the elements that are displayed in a list view, and the styles to be applied to those elements.
4-
ms.date: 03/22/2021
4+
ms.date: 03/30/2021
55
localization_priority: Priority
66
---
77

@@ -261,7 +261,7 @@ In the example below we have list with group headers formatted with group aggreg
261261

262262
![Employee list grouped by City with formatted group header with Aggregates summary](../images/employee-formatted-group-header-aggregate-list-layout.png)
263263

264-
In this example the `hideFooter` for `groupProps` are set to `true`- to hide the group footer and the `@aggregates` array is used to display a summary in the group header.
264+
In this example the `hideFooter` for `groupProps` is set to `true` - to hide the group footer and the `@aggregates` array is used to display a summary in the group header.
265265

266266
```JSON
267267
{
@@ -572,8 +572,8 @@ In the example below we have gallery view with formatted group headers as per co
572572

573573
![Employee gallery grouped by City with formatted group header](../images/employee-formatted-group-header-gallery-layout.png)
574574

575-
[!NOTE]
576-
Gallery card formatter is skipped in the below JSON for simplicity.
575+
> [!NOTE]
576+
> Gallery card formatter is skipped in the below JSON for simplicity.
577577
578578
```JSON
579579
{
@@ -676,14 +676,14 @@ Gallery card formatter is skipped in the below JSON for simplicity.
676676

677677
#### Example: Color coded group header with aggregate
678678

679-
In the example below we have list with formatted group headers formatted and group aggregates.
679+
In the example below we have list with formatted group headers and group aggregates.
680680

681681
![Employee gallery grouped by City with formatted group header with Aggregates summary](../images/employee-formatted-group-header-aggregate-gallery-layout.png)
682682

683683
In this example the `@aggregates` array is used to display a summary in the group header using `headerFormatter` in `groupProps`.
684684

685-
[!NOTE]
686-
Gallery card formatter is skipped in the below JSON for simplicity.
685+
> [!NOTE]
686+
> Gallery card formatter is skipped in the below JSON for simplicity.
687687
688688
```JSON
689689
{
@@ -814,13 +814,13 @@ Optional element. Specifies a CSS class(es) that is applied to the entire row. S
814814

815815
### hideSelection
816816

817-
Optional element. Specifies whether the ability to select rows in the view is disabled or not. _false_ is the default behavior inside a list view (meaning selection is visible and enabled). _true_ means that users will not be able to select list items. Valid in 'List', 'Compact List' and 'Gallery' layouts.
817+
Optional element. Specifies whether the ability to select rows in the view is disabled or not. `false` is the default behavior inside a list view (meaning selection is visible and enabled). `true` means that users will not be able to select list items. Valid in 'List', 'Compact List' and 'Gallery' layouts.
818818

819819
For list & compact list layout, `hideSelection` only takes effect when there's a `rowFormatter` element specified. If no `rowFormatter` is specified, then `hideSelection` is ignored.
820820

821821
### hideColumnHeader
822822

823-
Optional element. Specifies whether the column headers in the view are hidden or not. _false_ is the default behavior inside a list view (meaning column headers will be visible). _true_ means that the view will not display column headers. Only valid for 'List' and 'Compact List' layouts.
823+
Optional element. Specifies whether the column headers in the view are hidden or not. `false` is the default behavior inside a list view (meaning column headers will be visible). `true` means that the view will not display column headers. Only valid for 'List' and 'Compact List' layouts.
824824

825825
### height
826826

@@ -848,13 +848,13 @@ JSON object that defines the format for group and list footer. The schema of thi
848848

849849
### hideFooter
850850

851-
Optional element. Specifies whether the list footers or the group footers in the view are hidden or not. _false_ is the default behavior (meaning footer is visible). _true_ means that view will not display footers. Valid in 'List' and 'Compact List' layouts.
851+
Optional element. Specifies whether the list footers or the group footers in the view are hidden or not. `false` is the default behavior (meaning footer is visible). `true` means that view will not display footers. Valid in 'List' and 'Compact List' layouts.
852852

853853
For list & compact list layout, `hideFooter` overrides the `footerFormatter`, if present.
854854

855855
### Special string values
856856

857-
The values for `txtContent`, styles, and attributes can be either strings or Expression objects. A few special string patterns for retrieving values from group and aggregate are supported.
857+
The values for `txtContent`, styles, and attributes can be either strings or expression objects. A few special string patterns for retrieving values from group and aggregate are supported.
858858

859859
#### "@group"
860860

@@ -907,7 +907,7 @@ The `@columnAggregate` object has the following properties (with example values)
907907

908908
Provides access to array of aggregated column's value, display name and aggregate type. Valid in 'List', 'Compact List' and 'Gallery' layouts. Available only inside `groupProps`.
909909

910-
The `@aggregates` object has the following properties (with example value), and can be iterated on using [Column Format foreach](https://docs.microsoft.com/sharepoint/dev/declarative-customization/column-formatting#foreach) property.
910+
The `@aggregates` object has the following properties (with example value), and can be iterated on using [Column Format forEach](https://docs.microsoft.com/sharepoint/dev/declarative-customization/column-formatting#foreach) property.
911911

912912
```JSON
913913
[

0 commit comments

Comments
 (0)