Skip to main content
Version: 4.3

SelectCells

type SelectCells = (input) => void;

Programmatically sets the selection. Accepts a flat array of cell ids or dia.Cell instances, or an updater function that receives the currently-selected cells and returns the new selection. Operates directly on the selection collection.

Parameters

ParameterType
inputreadonly CellRef[] | ((previous) => readonly CellRef[])

Returns

void

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub