List Action Command Bar Position
Hi Skybow Team! I was recently playing with customizing the list Command Bar options via this MS post - https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-commandbar-formatting.
In their post they reference that you can change the position of the command bar options via the "position" property.
Is it possible to use this with custom list Actions created with Skybow?
-
Hi Dan
The List Actions (or other custom actions) have no key reserved in the list formatting.
But you can change the position of the default command bar buttons to achieve the desired positioning. Check my example with two configured List Actions:

{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
"commandBarProps": {
"commands": [
{
"key": "new",
"position": 1
},
{
"key": "editInGridView",
"position": 4
},
{
"key": "share",
"position": 5
},
{
"key": "export",
"position": 100
},
{
"key": "automate",
"position": 200
}
]
}
}
It looks the buttons are ordered first by the default order and corrected afterwards by positioning to specific index position [0-x]1
Please sign in to leave a comment.
Comments
1 comment