OnOffColumn component
Overview
The OnOffColumn component is a decorator for MultiselectColumn. It displays toggle switch elements instead of check boxes.
Constructor: app/code/Magento/Ui/view/base/web/js/grid/columns/onoff.js
Configuration options
Extends all MultiselectColumn configuration.
OnOffColumn-specific configuration:
Option | Description | Type | Default Value |
---|---|---|---|
bodyTmpl |
Path to the template that is used to render a column's field in the table's body. | String | ui/grid/cells/onoff |
fieldClass |
Additonal CSS classes added to the column's field elements. | {[name: string]: boolean } |
{ ' admin__scope-old': true, 'data-grid-onoff-cell': true, 'data-grid-checkbox-cell': false } |
headerTmpl |
Path to the .html template for the column's header. |
String | ui/grid/columns/onoff |