ui/RadioDecorator

import RadioDecorator from '@enact/ui/RadioDecorator';

Members

RadioDecoratorHigher-Order Component

ui/RadioDecorator.RadioDecorator is a Higher-order Component 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
activate
String

The event indicating the wrapped component is activated

Default: null
deactivate
String

The event indicating the wrapped component is deactivated

Default: null
prop
String

The name of a boolean prop that, when true, should activate the wrapped component.

Default: 'active'

RadioControllerDecoratorHigher-Order Component

ui/RadioDecorator.RadioControllerDecorator is 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';
ArrayBooleanFunctionModuleNumberObjectString