@jsvision/datagrid / checkboxGlyph
Function: checkboxGlyph()
checkboxGlyph(
selected):string
Defined in: datagrid/src/synthetic-columns.ts:65
The per-row checkbox glyph for a selection state.
Parameters
selected
boolean
Whether the row is in the selection.
Returns
string
'[x]' when selected, '[ ]' otherwise.
Example
ts
import { checkboxGlyph } from '@jsvision/datagrid';
checkboxGlyph(true); // '[x]'
checkboxGlyph(false); // '[ ]'