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 MenuItem you can provide 3 functions that will be invoked by AdapTable:
- onClick: What happens when the Menu Item is clicked
- hidden: Whether the Menu Item should appear or not
- disabled: Whether the Menu Item is enabled
- label: What Label the Menu Item should have
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 Menu Options
In this example we removed the Create Custom Sort and Create Format Column menu items for the 'Contact' column and we removed all AdapTable Menu Items for the 'Cust. Ref' column.