-
Notifications
You must be signed in to change notification settings - Fork 1k
openContextMenu doesnt seems to work in sp/formatting Schema (v2) #7787
Copy link
Copy link
Closed
Labels
area:list-formattingCategory: View, row & column formatting with JSONCategory: View, row & column formatting with JSONtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Metadata
Metadata
Assignees
Labels
area:list-formattingCategory: View, row & column formatting with JSONCategory: View, row & column formatting with JSONtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
Declarative list formatting
Developer environment
No response
What browser(s) / client(s) have you tested
Additional environment details
No response
Describe the bug / error
I would like to create a row/view Formatting for a document library without an active selection (
hideSelection: true)In the current schema it seems to be possible to create a button and setup the customRowAction to
openContextMenuso it should open the Context menu when i click on this button.https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json
I´ve tried it but nothing happens when i click on the Button
Here is my Code:
the ozher options like editProps work good
When i disable hideSelection then it works but then the ContextMenu works everywhere and i dont really need a button for that. I dont think that's the expected heavior for this setting.
Steps to reproduce
Setup Row Formatting
Click on the Button
Expected behavior
Open the Context Menu