sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Editing SharePoint Document Library Command Bar: What's the syntax for the 'Favourite' option

Open ChrisH2020 opened this issue 3 years ago • 6 comments

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.

ChrisH2020 avatar Jul 05 '23 23:07 ChrisH2020

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Jul 05 '23 23:07 ghost

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

chelobone avatar Aug 19 '24 17:08 chelobone

Hi @chelobone unfortunately I did not, although TBH I was taken off this project last year so I haven't looked into it since

ChrisH2020 avatar Aug 19 '24 18:08 ChrisH2020

Author

thanks for your response, maybe @VesaJuvonen can help me with this :)

chelobone avatar Aug 19 '24 19:08 chelobone

Hello @chelobone, You can hide the Favorite option by using the following JSON configuration:

"commandBarProps": {
    "commands": [
      {
        "key": "favoriteCommand",
        "hide": true
      }
    ]
  }
Image

Can you please go ahead and close the issue as it has now been resolved.

Ashlesha-MSFT avatar Jul 08 '25 10:07 Ashlesha-MSFT

We are closing this issue for now. If the problem persists, feel free to reopen it or open a new one.

Ashlesha-MSFT avatar Jul 11 '25 07:07 Ashlesha-MSFT