Set menu items to 'inactive' #37
kla-ko
started this conversation in
Ideas & Suggestions
Replies: 1 comment
-
I understand. I think this can be achieved if the API of the library is updated to expose a hook that will be executed right before the context-menu is displayed and in this hook can be defined the logic that decides what items |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
It's a common practice for context menus to show those menu items as inactive (= grey color, not selectable), if it does not make sense to execute the action related to these menu items.
Examples: A
paste
action shall be inactive if there is nothing to paste in the clipboard. Aback
action shall be inactive if this is the first step of a process.I don't think this is achievable today. Might be a feature for the
updateOptions
-API ?Regards
Beta Was this translation helpful? Give feedback.
All reactions