Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting JSON of subElements from commandBar not working - clipchamp Video #10016

Open
2 of 9 tasks
aymiee opened this issue Nov 13, 2024 · 1 comment
Open
2 of 9 tasks
Labels
Needs: Triage 🔍 Awaiting categorization and initial review.

Comments

@aymiee
Copy link

aymiee commented Nov 13, 2024

What type of issue is this?

Documentation issue / typo

What SharePoint development model, framework, SDK or API is this about?

Declarative list formatting

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Issue description

Formatting JSON for hiding sub-elements under the "New" button in a SharePoint list.

Unable to hide "Clipchamp Video" under the "New" button. I was able to hide the below but not Climpchamp:
{
"key": "newWordDocument",
"hide": true
},
{
"key": "newExcelWorkbook",
"hide": true
},
{
"key": "newPowerPointPresentation",
"hide": true
},
{
"key": "newOneNoteNotebook",
"hide": true
},
{
"key": "newFormsForExcel",
"hide": true
},
{
"key": "newVisioDrawing",
"hide": true
},

Steps to reproduce - I have tried all variations:
Create a view and open format view panel
Use JSON to hide Export to Excel submenu from Export button
Insert this JSON
{
"commandBarProps": {
"commands": [
{
"key": "newClipchamp",
"hide": true
},{
"key": "newClipchampVideo",
"hide": true
},{
"key": "newClipChampVideo",
"hide": true
},{
"key": "newClipchampvideo",
"hide": true
},
]
}
}

What is the correct key to hide the "Clipchamp Video" sub menu?

@XueSheng-GIT
Copy link

Maybe not possible at the moment!? At least there's no key for this in the docs: https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-commandbar-formatting#key

@VesaJuvonen VesaJuvonen added the Needs: Triage 🔍 Awaiting categorization and initial review. label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Awaiting categorization and initial review.
Projects
None yet
Development

No branches or pull requests

3 participants