Skip to content

@jsvision/datagrid / headerCheckboxGlyph

Function: headerCheckboxGlyph()

headerCheckboxGlyph(state): string

Defined in: datagrid/src/synthetic-columns.ts:82

The tri-state header-checkbox glyph over the displayed rows.

Parameters

state

TriState

'none' (empty box), 'some' (dash), or 'all' (checked).

Returns

string

'[ ]', '[-]', or '[x]'.

Example

ts
import { headerCheckboxGlyph } from '@jsvision/datagrid';
headerCheckboxGlyph('none'); // '[ ]'
headerCheckboxGlyph('some'); // '[-]'
headerCheckboxGlyph('all');  // '[x]'