Context Menu Demo

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 bespoke Menu Item(s) to the Context Menu - through Menu Options section of Adaptable Options.

In this example we added 'Float Dashboard' and 'Set System Status' menu items (with the latter having sub menu items).

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
  • shouldRender: Whether the Menu Item should appear or not
  • label: What Label the Menu Item should have

You can also choose which - if any - of the shipped Menu Items are available via the showAdaptableContextMenu property of Menu 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).

AdapTable Help Resources:

Generating dummy data, please wait ...