interface@af-utils/virtual-react
On this page

ListProps<C, Data>

VirtualList component props.

Type Parameters

C

C extends ElementType = "div"

Data

Data = unknown

Properties

children

children: ComponentType<ListItemProps<Data>>;

component?

optional component?: C;

optional footer?: 
  | ReactElement<unknown, string | JSXElementConstructor<any>>
  | null;

getItemKey?

optional getItemKey?: (index) => string | number;

Resolve stable item identities after records change index.

Parameters

index

number

Returns

string | number


optional header?: 
  | ReactElement<unknown, string | JSXElementConstructor<any>>
  | null;

itemData?

optional itemData?: Data;

could be accessed in ListItemProps.data


model

model: VirtualScroller;