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

    Props for ResultsTable.

    const props: ResultsTableProps = {
    getRowCanExpand: (row) => (row.original.variants?.length ?? 0) > 0,
    columnFilterFns: [filters, setFilters],
    };
    interface ResultsTableProps {
    /** Predicate deciding whether a row can expand to show variant sub-rows. */
    getRowCanExpand: (row: Row<Product>) => boolean;
    /** Controlled column-filter state tuple `[state, setState]`. */
    columnFilterFns: [ColumnFiltersState, Dispatch<SetStateAction<ColumnFiltersState>>];
    }
    interface ResultsTableProps {
        getRowCanExpand: (row: Row<Product>) => boolean;
        columnFilterFns: [
            ColumnFiltersState,
            Dispatch<SetStateAction<ColumnFiltersState>>,
        ];
    }
    Index

    Properties

    getRowCanExpand: (row: Row<Product>) => boolean

    Predicate deciding whether a row can expand to show variant sub-rows.

    columnFilterFns: [
        ColumnFiltersState,
        Dispatch<SetStateAction<ColumnFiltersState>>,
    ]

    Controlled column-filter state tuple [state, setState].