Definition: A context menu is a pop-up menu that provides shortcuts for actions the user might want to take.
The context menu appears when the user right-clicks anywhere in the context area, right next to the user's mouse.
The component is divided into two public reusable UI blocks (ContextMenu and ContextSubMenu). The Sub-menu block should only be positioned inside a Context menu and a Context menu should stand alone and not be nested inside another menu's Context area.
Use the Context Menu widget, and insert the context area items in the ContextContent placeholder, the context could be everything you see fit for the context. Next, create the menu items or use the Context Sub Menu in the ContextMenuItems placeholder and create as many menu items as are necessary for the context menu.
If you want the styles used in the demo: Use the class “context_menu_item” for each menu item, both in the “main” and sub-menu. If an item should be disabled add the class “disabled” in in the menu item class list.
This forge element is created for a specific solution, so all requests are welcome to improve this forge element.
If you want an area where a custom menu should appear if the user right click.
Use the Context Menu widget, insert the context area items the ContextContent placeholder, the context could be everything you seem fit for context. Next, create the menu items or use the Context Sub Menu in the ContextMenuItems placeholder and create as many menu items that is necessary in the context menu.
If you want the styles used in the demo: Use the class “context_menu_item” for each menu item, both in the “main” and sub menu. If an item should be disabled add the class “disabled” in in the menu item class list.
This forge element is created for a specific solution, so all requests is welcome to improve this forge element.