moonstone/ Grid List Image Item
Provides Moonstone styled grid list image item components and behaviors.
import GridListImageItem from '@enact/moonstone/GridListImageItem';Members
GridListImageItemComponent
A moonstone-styled grid list image item, Marquee and Spottable applied.
Usage:
<GridListImageItem
caption="image0"
source="http://via.placeholder.com/300x300/9037ab/ffffff/png?text=Image0"
subCaption="sub-image0"
/>import GridListImageItem from '@enact/moonstone/GridListImageItem';GridListImageItemBaseComponent
A Moonstone styled base component for GridListImageItem.
import {GridListImageItemBase} from '@enact/moonstone/GridListImageItem';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:
icon- The icon component class for default selection overlayimage- The image component classselected- Applied whenselectedprop istruecaption- The caption component classsubCaption- The subCaption component class
The voice control intent.
Default: 'Select'Placeholder image used while source is loaded.
Default: An imageApplies a selected visual effect to the image, but only if
selectionOverlayShowingis alsotrue.Default: falseThe custom selection overlay component to render. A component can be a stateless functional component,
kind()or React component. The following is an example with custom selection overlay kind.Usage:
const SelectionOverlay = kind({ render: () => <div>custom overlay</div> }); <GridListImageItem selectionOverlay={SelectionOverlay} />
GridListImageItemDecoratorHigher-Order Component
Moonstone-specific GridListImageItem behaviors to apply to GridListImageItem.
import {GridListImageItemDecorator} from '@enact/moonstone/GridListImageItem';