Example - Context Menu Plugin & Hybrid Selection Mode

Demonstrates: Slick.Plugins.HybridSelectionModel / Slick.Plugins.CellMenu

  • Slick.Plugins.HybridSelectionModel
  • This selectionmodel is a combination of the row and column selectionmodels.
  • for a given row, the selectionmodel that applies is selected by the following in priority order:
  • 1) if options.rowSelectOverride is defined, call rowSelectOverride(rowData, plugin, grid), return value is true to use rowSelectionModel
  • 2) if the RowMovweManager plugin is used, and rowMoveManager.isHandlerColumn is true, select RowSelectionModel
  • 3) if the column name is in options.rowSelectColumnIds[] then apply rowSelectionModel
  • Slick.Plugins.ContextMenu - Context Menu (global from any columns right+click)
  • This plugin subscribes internally to the "onContextMenu" event
  • Mouse Right-Click the row to open a Context Menu (global any columns)
  • The context menu showing on left columns will show only commands (from Title to EffortDriven)
  • The context menu showing on Priority column will show list of options that will be applied to the Priority cell

View Source: