You can customize a column's menu and provide your own functionality. Each menu item can have:
shown: a function that determines whether or not to display the itemtitle: the title you'd like to have displayed for the menu item (note that you can also
use i18n on this through the gridMenuTitleFilter setting)icon: an icon you'd like displayed alongside the itemaction: a function that will be called when the menu is clickedactive: a function that highlights the item (giving a toggle type effect - see the sort on the column menus for an example)context: by default, the action, shown and active's' contexts will have a reference to the grid added as the
property grid (accessible through this.grid. You can pass in your own context by supplying
the context property to your menu item. It will be accessible through this.context.The column menu will add the column's GridColumn object to the context as this.context.col.
You can then show/hide the the menu item based on conditions that use the grid and column. You could
also use a custom column builder to add some item to the every column definition.
You can remove the column hide option using the enableHiding: false columnDef option, which will also prevent
this column being hidden in the gridMenu (once it is finished and merged). You can disable
the column menu entirely using the enableColumnMenu: false columnDef option.
You can disable all column menus using the enableColumnMenus: false grid option.
You can supply an icon class with the icon property.