rx-datatable API
    Preparing search index...

    Interface DataTableHeadingRowProps<ColName, ItemProps>

    Props passed to the renderer for the heading row of a <DataTable>. Note: if you need access to other props that were passed to DataTable, use const tableProps = useContext(DataTableContext);.

    interface DataTableHeadingRowProps<
        ColName = string,
        ItemProps = DefaultRowProps,
    > {
        headingRowProps?: ItemProps;
        getColumnSortIndicator(colName: ColName): SortDirection | undefined;
        getColumnWidth(colName: ColName): number | undefined;
        onHeadingClick(colName: ColName): void;
        setColumnWidth(colName: ColName, width: number): void;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    headingRowProps?: ItemProps
    • A function to gets the current width of column width, if set.

      Parameters

      Returns number | undefined

    • A function to save a column width. Called as the resize handle is dragged by the user.

      Parameters

      Returns void