ui/ Radio Decorator
A higher-order component that manages activation of components.
import RadioDecorator from '@enact/ui/RadioDecorator';Members
RadioDecoratorHigher-Order Component
A higher-order component (HOC) that allows another component to have a mutually exclusive relationship with other descendants of the same ui/RadioDecorator.RadioControllerDecorator.
When the activate event for the wrapped component is called, the component is activated and the
previously activated component, if any, is deactivated by invoking the deactivate event.
import RadioDecorator from '@enact/ui/RadioDecorator';Configuration
The event indicating the wrapped component is activated
Default: nullThe event indicating the wrapped component is deactivated
Default: nullThe name of a boolean prop that activates the wrapped component when it is true.
Default: 'active'
RadioControllerDecoratorHigher-Order Component
A higher-order component that establishes a radio group context for its descendants.
Any descendants that are wrapped by ui/RadioDecorator.RadioDecorator will be mutually exclusive.
import {RadioControllerDecorator} from '@enact/ui/RadioDecorator';