moonstone/ Virtual Flex List
Exports the moonstone/VirtualFlexList.VirtualFlexList and moonstone/VirtualFlexList.VirtualFlexListBase components. The default export is moonstone/VirtualFlexList.VirtualFlexList.
import VirtualFlexList from '@enact/moonstone/VirtualFlexList';Members
VirtualFlexListComponent❌
since 1.14.0. Will be replaced by ui/VirtualFlexList in 2.0.0
moonstone/VirtualFlexList~VirtualFlexList is a VirtualFlexList with Moonstone styling which has a variable width or height.
import VirtualFlexList from '@enact/moonstone/VirtualFlexList';Properties
- corner
The component for corner in a list. It has
componentproperty to render the list corner andbackgroundproperty forbackgroundinline style.- headers
Row and column headers in a list including the following properties.
colfor a column headerrowfor a row headerThoese properties have the following properties.
componentis the render function for an item.countis the property for the number of items vertically.datais any data which is passed to the render funtion.heightis the item height.widthis the item width.backgroundis forbackgroundinline style.- items
List items including the following properties.
colCountis the number of items horizontally.componentis the render function for an item.datais any data which is passed to the render funtion.heightis the item height.rowCountis the number of items vertically.widthis the item width.backgroundis forbackgroundinline style.The object including
data,index, andkeyproperties are passed as the parameters of thecomponentrender function.- maxFlexScrollSize
The predefined maxScrollSize for variable width or height.
- onPositionChange
Called when position updates
The object including
x,yproperties for position, are passed as the parameters of theonPositionChangecallback function.- x
Position x.
- y
Position y.
VirtualFlexListBaseComponent
moonstone/VirtualFlexList.VirtualFlexListBase is a base component for VirtualFlexList.
import {VirtualFlexListBase} from '@enact/moonstone/VirtualFlexList';cornerShapeObject
The shape for the component of the list corner for moonstone/VirtualFlexList.corner.
- component
- Object
React element, a render function.
- background
- String
Background inline style.
headersColumnOrRowObject
The information of a column or a row header for moonstone/VirtualFlexList.headersShape.
- component
- Function
The render function for an item.
- count
- Number
Item count. It should be a number.
- data
- Object
Any data which is passed to the render funtion.
- height
- Number
The item height.
- width
- Number
The item width.
- background
- String
Background inline style.
headersShapeObject
The shape for the a column or a row headers in a list for moonstone/VirtualFlexList.headers.
- col
- headersColumnOrRow
The information of a column header.
- row
- headersColumnOrRow
The information of a row header.
itemsShapeObject
The shape for the list items for moonstone/VirtualFlexList.items.
- colCount
- NumberFunction
The number of items or the function to get it horizontally.
- component
- Function
The render function for an item.
- data
- Object
Any data which is passed to the render funtion.
- height
- NumberFunction
The item height.
- rowCount
- NumberFunction
The number of items or the function to get it vertically.
- width
- NumberFunction
The item width.
- background
- String
Background inline style.
sizeShapeObject
The shape for moonstone/VirtualFlexList.dataSize or moonstone/VirtualFlexList.itemSize.
- col
- NumberFunction
The size for column data/item. It should be either number or function to get it.
- row
- NumberFunction
The size for row data/item. It should be either number or function to get it.