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/view-commandbar-formatting.md
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: Command bar customization syntax reference
3
3
description: Command bar customization syntax reference
4
-
ms.date: 03/14/2025
4
+
ms.date: 05/15/2025
5
5
ms.localizationpriority: high
6
6
---
7
7
8
8
# Command bar customization syntax reference
9
9
10
-
Command bar customization helps personalize a list to suit specific requirements. The JSONbased 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.
11
11
12
12
## commandBarProps
13
13
@@ -87,20 +87,24 @@ Mandatory property to uniquely identify a command in the Command bar. Valid keys
87
87
'pinToQuickAccess'
88
88
'unpinFromQuickAccess'
89
89
'manageForms'
90
+
'favoriteCommand'
91
+
'createCopilot'
90
92
```
91
93
92
94
## 🚀 Recent updates to `commandBarCustomization` Keys
93
95
94
96
> [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?
96
98
>
97
99
> | Original Key | Current Key |
98
100
> |--------------|-------------|
99
-
> |`new`|`newComposite`|
101
+
> |`new`|`newComposite`(Document Library)|
100
102
> |`upload`|`uploadCommand`|
101
103
> |`sync`|`syncCommand`|
102
104
> |`addShortcut`|`addShortcutToOneDriveCommand`|
103
105
> |`pinToQuickAccess`|`PinToQuickAccessCommand`|
106
+
> |`pinItem`|`pinItemCommand`|
107
+
> |`properties`|`propertiesCommand`|
104
108
105
109
## hide
106
110
@@ -154,7 +158,7 @@ The following example shows a sample Command bar formatting JSON to do the follo
154
158
155
159
## position
156
160
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.
158
162
159
163
## sectionType
160
164
@@ -164,8 +168,9 @@ An optional property that specifies the section where the customized command wil
164
168
- Overflow
165
169
166
170
The following example shows a sample Command bar formatting JSON to do the following:
171
+
167
172
- 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.
169
174
- Puts the 'Alert me' command at the fourth position in the primary section of the Command bar.
170
175
171
176
```JSON
@@ -193,7 +198,7 @@ The following example shows a sample Command bar formatting JSON to do the follo
193
198
194
199
## selectionModes
195
200
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:
0 commit comments