Skip to content

SelectionTrigger

Mouse event type that triggers selection.

  • 'click' - Single click activates selection (default)
  • 'dblclick' - Double-click activates selection; single-click only focuses

Note: Only applies to 'cell' and 'row' modes. Range mode uses drag selection (mousedown → mousemove) which is unaffected by this option.

type SelectionTrigger = "click" | "dblclick"
// Double-click to select - useful for data entry grids
new SelectionPlugin({ mode: 'cell', triggerOn: 'dblclick' })
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt