This example demonstrates using the
SlickHeaderMenu plugin to easily add menus to colum headers.
These menus can be specified directly in the column definition, and are very easy to configure and use. (
Wiki docs)
- Now enabled by default in the Global Grid Options, it will add the default commands of (hide column, sort asc/desc)
- Hover over any column header to see an arrow showing up on the right
- Try Sorting (multi-sort) the 2 columns "Duration" and "% Complete" (the other ones are disabled)
- Try hiding any columns (you use the "Column Picker" plugin by doing a right+click on the header to show the column back)
- Note: The "Header Button" & "Header Menu" Plugins cannot be used at the same time
- You can change the menu icon via SASS variables as shown in this demo (check all SASS variables)
-
Use override callback functions to change the properties of show/hide, enable/disable the menu or certain item(s) from the list
- These callbacks are: "itemVisibilityOverride", "itemUsabilityOverride"
- for example if we want to disable the "Help" command over the "Title" and "Completed" column
- for example don't show Help on column "% Complete"