|
1 | 1 | --- |
2 | 2 | title: Grouping support with ListView Command Set extension |
3 | | -description: Using grouping with ListView Command Set extensions. |
| 3 | +description: Use the group element in a ListView Command Set manifest to build a two-level hierarchy of commands in the SPFx list and library toolbar. |
4 | 4 | ms.date: 03/19/2026 |
| 5 | +author: VesaJuvonen |
| 6 | +ms.author: vesaj |
| 7 | +ms.topic: concept-article |
| 8 | +ms.service: sharepoint |
5 | 9 | ms.localizationpriority: medium |
6 | 10 | --- |
7 | | -# Build your first ListView Command Set extension |
8 | 11 |
|
9 | | -Starting from the [SharePoint Framework v1.23](../../release-1.23.md), ListView Command Sets also support grouping. You can use `group` element and cross item associations in the ListView Command Set manifest to build a hierarchy of commands which are then grouped in the list and library toolbar and context menu. |
| 12 | +# Grouping support with ListView Command Set extension |
10 | 13 |
|
11 | | - |
| 14 | +Starting from the [SharePoint Framework v1.23](../../release-1.23.md), [ListView Command Sets](../get-started/building-simple-cmdset-with-dialog-api.md) also support grouping. You can use `group` element and cross item associations in the ListView Command Set manifest to build a hierarchy of commands that are then grouped in the list and library toolbar and context menu. |
12 | 15 |
|
13 | | -Notice that yo can only have two level of grouping as shown in the picture and in the below sample. |
| 16 | +[!INCLUDE [spfx-prerelease-related](../../../../includes/snippets/spfx-prerelease-related.md)] |
14 | 17 |
|
15 | | -Here's an example extension manifest which uses `group` element and type to define the associations and grouping between the commands. |
| 18 | + |
16 | 19 |
|
17 | | -``` json |
| 20 | +Notice that you can only have two levels of grouping as shown in the picture and in the following sample. |
| 21 | + |
| 22 | +Here's an example extension manifest that uses `group` element and type to define the associations and grouping between the commands. |
| 23 | + |
| 24 | +```json |
18 | 25 | { |
19 | 26 | "$schema": "https://developer.microsoft.com/json-schemas/spfx/command-set-extension-manifest.schema.json", |
20 | 27 |
|
@@ -75,5 +82,10 @@ Here's an example extension manifest which uses `group` element and type to defi |
75 | 82 | } |
76 | 83 | } |
77 | 84 | } |
| 85 | +``` |
| 86 | + |
| 87 | +## See also |
78 | 88 |
|
79 | | -``` |
| 89 | +- [Build your first ListView Command Set extension](../get-started/building-simple-cmdset-with-dialog-api.md) |
| 90 | +- [Migrate from UI extensions to ListView Command Sets](../../../sp-add-ins-modernize/from-ui-extensions-to-listview-command-sets.md) |
| 91 | +- [Overview of SharePoint Framework Extensions](../overview-extensions.md) |
0 commit comments