ui/ Repeater
A repeater component.
import Repeater from '@enact/ui/Repeater';Members
RepeaterComponent
A stateless component that stamps out copies of childComponent.
import Repeater from '@enact/ui/Repeater';RepeaterBaseComponent
A stateless component that stamps out copies of childComponent, without
RepeaterDecorator applied.
import {RepeaterBase} from '@enact/ui/Repeater';Properties
Component type to repeat.
This can be a React component or a string describing a DOM node (e.g.
'div').An array of data to be mapped onto the
childComponent.This supports two data types. If an array of strings is provided, the strings will be used in the generated
childComponentas the readable text. If an array of objects is provided, each object will be spread onto the generatedchildComponentwith no interpretation. You'll be responsible for setting properties likedisabled,className, and setting the text content using thechildrenkey.NOTE: When an array of objects is provided, make sure a unique
keyis assigned to each data. See https://fb.me/react-warning-keys for more information.The property on each
childComponentthat receives the data inchildren.Default: 'children'Component type to wrap around all of the repeated elements.
This can be a string describing a DOM node or React component (e.g.
'div'orLayout).Default: 'span'Called with a reference to the root component.
When using ui/Repeater.Repeater, the
refprop is forwarded to this component ascomponentRef.The property on each
childComponentthat receives the index of the item in theRepeater.Default: 'data-index'An object containing properties to be passed to each child.
RepeaterDecoratorHigher-Order Component
Applies Repeater behaviors.
import {RepeaterDecorator} from '@enact/ui/Repeater';