sandstone/ Switch Item
Provides Sandstone-themed item component and interactive toggleable switch.
import SwitchItem from '@enact/sandstone/SwitchItem';
Members
SwitchItemComponent
A Sandstone-styled item with a switch component.
SwitchItem
will manage its selected
state via Toggleable unless set
directly.
import SwitchItem from '@enact/sandstone/SwitchItem';
Extends: sandstone/SwitchItem.SwitchItemBase
Wrapped with: sandstone/SwitchItem.SwitchItemDecorator
SwitchItemBaseComponent
Renders an item with a Switch.
import {SwitchItemBase} from '@enact/sandstone/SwitchItem';
Extends: sandstone/Item.Item
Properties
Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.
The following classes are supported:
switchItem
- The root class name
If true the switch will be selected.
Default: falseNodes to be inserted after
children
and before the switch.
SwitchItemDecoratorHigher-Order Component
Adds interactive functionality to SwitchItem
.
import {SwitchItemDecorator} from '@enact/sandstone/SwitchItem';
Includes: ui/Toggleable.Toggleable
ArrayBooleanFunctionModuleNumberObjectString