Replies: 2 comments 2 replies
-
Hey! We do not yet have support for context menus. You should be able to implement your own using our Menu hooks though. There are likely some accessibility issues around context menus that you'll need to read up on, https://stackoverflow.com/questions/29145435/are-custom-context-menu-accessible/29145586 A couple things I've quickly noticed are:
It seems to be good practice to include a physical button to cover all the cases which would make a right click a bit of a mouse power user only feature. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the input. Yes, I agree with the accessibility issues of that, I might just reconsider this. On the TableView there is the onAction event, which fires on doubleClick on Web, and on single tap on mobile. This seems like a nice way to implement it then. However, what I try to do is show a Menu on the row on doubleClicking then. In the docs, the MenuTrigger is used, but I can't just wrap the whole Row into a MenuTrigger, as this throws. I guess there must be a way to programatically open a menu on that row with the onAction callback, but I'm missing it. Is that possible? |
Beta Was this translation helpful? Give feedback.
-
I want to build some components that react to right click events, and trigger an action menu for example.
Say I have a table, and right clicking on the table row would spawn a contextmenu with additional options.
I haven't seen any use of contextmenu here at all, so how would be the best case of going about it?
Beta Was this translation helpful? Give feedback.
All reactions