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

Hi,

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).

(see Table - CUBA Platform. Developer’s Manual).

I hope this helps.

Bye

Thanks for the quick and helpfull answer.