@helix-x/datagrid-ui - v0.1.2
    Preparing search index...

    Interface UseServerDataSourceOptions<T>

    Options for useServerDataSource.

    interface UseServerDataSourceOptions<T> {
        dataSource: HxDataSource<T>;
        filterModel: FilterModelMap;
        maxCachedBlocks?: number;
        onError?: (error: unknown) => void;
        page: number;
        pageSize: number;
        sortModel: SortModelItem[];
    }

    Type Parameters

    • T

      The row type.

    Index
    dataSource: HxDataSource<T>

    Where rows come from. Memoise it, or every render refetches.

    filterModel: FilterModelMap

    Active filters, keyed by column id.

    maxCachedBlocks?: number

    Blocks to keep around so paging back and forth does not refetch.

    3
    
    onError?: (error: unknown) => void

    Called when a fetch throws. Aborted requests are not reported.

    page: number

    Zero-based page index.

    pageSize: number

    Rows per page.

    sortModel: SortModelItem[]

    Active sorts, primary first.