Skip to content

Commit d7a7a16

Browse files
Update view-commandbar-formatting.md (SharePoint#10223)
* Update view-commandbar-formatting.md * update timestamp, fix grammatical issues --------- Co-authored-by: Andrew Connell <[email protected]>
1 parent efe2fda commit d7a7a16

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

docs/declarative-customization/view-commandbar-formatting.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Command bar customization syntax reference
33
description: Command bar customization syntax reference
4-
ms.date: 03/14/2025
4+
ms.date: 05/15/2025
55
ms.localizationpriority: high
66
---
77

88
# Command bar customization syntax reference
99

10-
Command bar customization helps personalize a list to suit specific requirements. The JSON based feature allows basic changes to the command bar, including modification of icon and/or text, hiding existing options or repositioning commands.
10+
Command bar customization helps personalize a list to suit specific requirements. The JSON-based feature allows basic changes to the command bar, including modification of icon and/or text, hiding existing options, or repositioning commands.
1111

1212
## commandBarProps
1313

@@ -87,20 +87,24 @@ Mandatory property to uniquely identify a command in the Command bar. Valid keys
8787
'pinToQuickAccess'
8888
'unpinFromQuickAccess'
8989
'manageForms'
90+
'favoriteCommand'
91+
'createCopilot'
9092
```
9193

9294
## 🚀 Recent updates to `commandBarCustomization` Keys
9395

9496
> [NOTE!]
95-
> Some keys in the `commandBarCustomization` schema have been updated. To ensure your custom formatter works correctly, update your existing JSON with these new keys.
97+
> Some keys in the `commandBarCustomization` schema have been updated. To ensure your custom formatter works correctly, could you update your existing JSON with these new keys?
9698
>
9799
> | Original Key | Current Key |
98100
> |--------------|-------------|
99-
> | `new` | `newComposite` |
101+
> | `new` | `newComposite` (Document Library)|
100102
> | `upload` | `uploadCommand` |
101103
> | `sync` | `syncCommand` |
102104
> | `addShortcut`| `addShortcutToOneDriveCommand` |
103105
> | `pinToQuickAccess` | `PinToQuickAccessCommand` |
106+
> | `pinItem` | `pinItemCommand` |
107+
> | `properties` | `propertiesCommand` |
104108
105109
## hide
106110

@@ -154,7 +158,7 @@ The following example shows a sample Command bar formatting JSON to do the follo
154158

155159
## position
156160

157-
An optional property that specifies the position where the command will be placed in the command bar. The value of this property can either be a number, string or an Expression object. If the value is not provided then the command will be placed in it's default position. This property follows zero-based indexing.
161+
An optional property that specifies the position where the command will be placed in the command bar. The value of this property can either be a number, a string, or an Expression object. If the value is not provided then the command will be placed in it's default position. This property follows zero-based indexing.
158162

159163
## sectionType
160164

@@ -164,8 +168,9 @@ An optional property that specifies the section where the customized command wil
164168
- Overflow
165169

166170
The following example shows a sample Command bar formatting JSON to do the following:
171+
167172
- Puts the 'New' command at the third position in the primary section of the Command bar.
168-
- Puts the 'Share' command at the second position in the overflow menu of the Command bar.
173+
- Puts the 'Share' command in the second position in the overflow menu of the Command bar.
169174
- Puts the 'Alert me' command at the fourth position in the primary section of the Command bar.
170175

171176
```JSON
@@ -193,7 +198,7 @@ The following example shows a sample Command bar formatting JSON to do the follo
193198

194199
## selectionModes
195200

196-
An optional property that specifies the selection modes in which the command customization will be applied. If the value is not provided then the customization will be applied in all the selection modes in which the command is available. The value of this property can be array of strings where the following strings are allowed:
201+
An optional property that specifies the selection modes in which the command customization will be applied. If the value is not provided, then the customization will be applied in all the selection modes in which the command is available. The value of this property can be an array of strings where the following strings are allowed:
197202

198203
- NoSelection
199204
- SingleSelection

0 commit comments

Comments
 (0)