ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Props for TableOptions.

    const props: TableOptionsProps = {
    table, onSearch: (q) => runSearch(q), onToggleDrawer: () => {}, isDrawerOpen: false,
    };
    interface TableOptionsProps {
    /** The TanStack table instance the toolbar operates on. */
    table: Table<Product>;
    /** Called with the query when a search is submitted from the toolbar input. */
    onSearch: (query: string) => void;
    /** Toggles the filter drawer open/closed. */
    onToggleDrawer: () => void;
    /** Whether the filter drawer is currently open. */
    isDrawerOpen: boolean;
    }
    interface TableOptionsProps {
        table: Table<Product>;
        onSearch: (query: string) => void;
        onToggleDrawer: () => void;
        isDrawerOpen: boolean;
    }
    Index

    Properties

    table: Table<Product>

    The TanStack table instance the toolbar operates on.

    onSearch: (query: string) => void

    Called with the query when a search is submitted from the toolbar input.

    onToggleDrawer: () => void

    Toggles the filter drawer open/closed.

    isDrawerOpen: boolean

    Whether the filter drawer is currently open.