Editing SharePoint Document Library Command Bar: What's the syntax for the 'Favourite' option
Hi, I would like to hide the 'Favourite' option but cannot find the key word to do this. Would it be possible to update the list with this option? TIA
[Enter feedback here]
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 22dffaf9-de6c-5ec3-bd61-23b995c256ce
- Version Independent ID: 22dffaf9-de6c-5ec3-bd61-23b995c256ce
- Content: Command bar customization syntax reference
- Content Source: docs/declarative-customization/view-commandbar-formatting.md
- Service: sharepoint-online
- GitHub Login: @VesaJuvonen
- Microsoft Alias: vesaj
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
hey @ChrisH2020, could you resolve this issue? i have the same issue right now. Also, i don't find the commnad key for File Request
Hi @chelobone unfortunately I did not, although TBH I was taken off this project last year so I haven't looked into it since
Author
thanks for your response, maybe @VesaJuvonen can help me with this :)
Hello @chelobone, You can hide the Favorite option by using the following JSON configuration:
"commandBarProps": {
"commands": [
{
"key": "favoriteCommand",
"hide": true
}
]
}
Can you please go ahead and close the issue as it has now been resolved.
We are closing this issue for now. If the problem persists, feel free to reopen it or open a new one.