Interface UseCellLayoutProps

interface UseCellLayoutProps {
    columnCount: number;
    defaultColumnWidth?: number;
    defaultRowHeight?: number;
    getColumnWidth?: ItemSizer;
    getRowHeight?: ItemSizer;
    rowCount: number;
}

Properties

columnCount: number

Number of columns in the grid

defaultColumnWidth?: number

Performance - Helps in lazy grid width calculation

defaultRowHeight?: number

Performance - Helps in lazy grid height calculation

getColumnWidth?: ItemSizer

Should return width of a column at an index

getRowHeight?: ItemSizer

Should return height of a row at an index

rowCount: number

Number of rows in the grid