None
getItemProps: (itemData: T, index: number) => Omit<ComponentPropsWithoutRef<'div'>, 'key'>: set properties of item content container's parentgetItemContentProps: (itemData: T, index: number) => Omit<ComponentPropsWithoutRef<'div'>, 'key'>: set item content container properties
DraggableGridProps.childrenandDraggableItemcomponent is deprecated and removed from export content. We don't need it anymore, use propertyDraggableGridProps.renderIteminstead.
-
DraggableGridProps.dataArray type, required.
Property
datais data source for this grid, every item of data should have unique key(STRING TYPE) for uniquely identify, and you can use propertyuniKeyto define which is your data item unique key name. -
DraggableGridProps.renderItemFunction type, optional. Default to undefined.
Functions for rendering items with item of data as parameter.
-
DraggableGridProps.uniKeyString type, optional. Default to 'id'
Property
uniKeyis the unique key for every data items. The default value is'id', you can pass it with lodash-like pathname, such ascontent.id
- Scroll position lost: Dynamic add or remove grid items will re-construct the grid.
- Grid items can't delete dynamicly: Views are not bind with grid instance data model.