AdapTable provides a Context Menu - accessible when you right-click in a cell - which includes shortcuts to functionality relevant to that cell (and what is selected).
You can add your own User Menu Item(s) to the Context Menu - through User Interface State; in this example we added 'Float Dashboard' and 'Set System Status' menu items (with the latter having sub menu items).
When you define a UserMenuItem you can reference 2 functions (for which you provide the implementation for both in UserFunctions section of AdaptableOptions).
- UserMenuItemClickedFunction: the function called when a Menu Item is clicked.
- UserMenuItemShowPredicate: the predicate function that runs when the menu is opened to return if the menu item should appear.
You can also choose which - if any - of the shipped Menu Items are available via the showAdaptableContextMenu property of User Interface Options; in this example we removed the Filter menu item for the 'Employee' column and all the menu items for the 'Contact' column.
The 2 arguments to the function are Adaptable Menu Item (the menu item to show) and Menu Info (which provides details of the current cell and cell selection).