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 3 User Functions (for which you provide the implementation for both in UserFunctions section of AdaptableOptions).
- UserMenuItem Clicked Function: the User Function called when a Menu Item is clicked.
- UserMenuItem Show Predicate: the predicate function that runs when the menu is opened to return if the menu item should appear.
- UserMenuItem Label: the User Function that runs when the menu is created to allow for an alternative label to be displayed.
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 'Create Custom Sort' and 'View as PieChart' menu items for the 'Contact' column and we removed all AdapTable menu items for the 'Cust. Ref' column.