AdapTable provides a Column Menu - accessible via the Column Header - which includes shortcuts to all the popup screens relevant to that column and its data type.
The Column Menu is context sensitive so the menu items shown are dependent on the current column and the make up of the Grid.
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.
In this example we added 'Float Dashboard' and 'Set System Status' menu items (with the latter having sub menu items).
You can also choose which - if any - of AdapTable's shipped Column Menu items are available by using the showAdaptableColumnMenu function property in User Interface Options
In this example we removed the 'Show Column Chooser' and 'View as PieChart' menu items for the 'Contact' column and we removed all AdapTable menu items for the 'Cust. Ref' column.