@timlassiter11/yatl
    Preparing search index...

    Interface TableState<T>

    Represents the current state of the table

    interface TableState<T> {
        columnOrder: NestedKeyOf<T>[];
        columns: ColumnState<T>[];
        filters: null | Partial<{ [K in string]: any }> | FilterCallback<T>;
        scrollPosition: { left: number; top: number };
        searchQuery: null | string | RegExp;
    }

    Type Parameters

    • T
    Index

    Properties

    columnOrder: NestedKeyOf<T>[]

    The current column order represented as a list of their fields from left to right.

    columns: ColumnState<T>[]

    A list of ColumnStates representing all of the columns in the table.

    filters: null | Partial<{ [K in string]: any }> | FilterCallback<T>

    The current filters applied to the table or null if no filters are applied.

    scrollPosition: { left: number; top: number }

    The current scroll position of the table

    searchQuery: null | string | RegExp

    The current query applied to the table or null if no query is applied.