Magento 2.1.18 is the final 2.1.x release. After June 2019, Magento 2.1.x will no longer receive security patches, quality fixes, or documentation updates.
To maintain your site's performance, security, and PCI compliance, upgrade to the latest version of Magento.

OnOffColumn component

The OnOffColumn component is a decorator for MultiselectColumn. It displays toggle switch elements instead of checkboxes.

Configuration options

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 Additional 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

Source files

Extends MultiselectColumn:

Updated