Context menu edit

Hi, could you please advice how the context menu(mouse right-click menu) could be edited? For example, I want to hide the “System information” item from context menu. How this could be done?
Thanks in advance.

1 Like


you can hide the system information entry for the whole application through a specific permission in Administration > Roles > Role edit > Tab “Specific” > CUBA > generic UI > Systeminformation.

Generally the context menu e.g. in tables displayes all actions that are defined as actions for this table. Quoting from the docs here:

contextMenuEnabled attribute enables the context menu. By default this attribute is set to true. The context menu shows table actions (if any) and the System Information item containing information on the selected entity (if the user has cuba.gui.showInfo permission).


I hope this helps.


Thanks for the quick and helpfull answer.