Checkbox and Switch Editor
Boolean editing with a checkbox or a switch. Space or a click toggles the value directly, with no separate edit mode. It supports an optional third 'indeterminate' state (null) for nullable fields.
Planned. This page shows the specification from issue #193. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A feature-flag grid with an Enabled column (switch) and a Beta column (tri-state checkbox).
Expected behavior
Space toggles the value of the focused cell. A click toggles the value when singleClickToggle is on. Tri-state cycles through true, false and null. Custom true and false values are stored instead of booleans.
Planned API surface
editor: 'checkbox'|'switch'editorParams.triStateeditorParams.trueValueeditorParams.falseValuesingleClickToggleAcceptance criteria
- Space on a focused boolean cell toggles the value and fires onCellValueChanged. (pending)
- Tri-state cycles in a documented order. (pending)
- trueValue and falseValue are written to the data instead of booleans. (pending)
- Read-only boolean cells show their state but cannot be toggled. (pending)