ChemPal Documentation - v1.7.0
    Preparing search index...

    Module mixins/tanstack

    Functions

    getHeaderText

    Gets the displayable header text for a column. This is needed because the header text is not always a string. Sometimes it's an HTML or React element.

    getVisibleUniqueValues

    Gets a sorted unique list of values for a column from visible rows. Only returns the visible values (e.g., if another filter has been applied, the filtered out results won't be included here).

    getAllUniqueValues

    Gets a sorted unique list of values for a column from all rows. Returns all values, including the filtered out ones.

    getFullRange

    Gets the range of values for a column from all rows. Returns all values, including the filtered out ones.

    getVisibleRange

    Gets the range of values for a column from visible rows. Only returns the visible values (e.g., if another filter has been applied, the filtered out results won't be included here).

    getEmptyHideableColumnIds

    Returns the ids of hideable columns that contain no data in ANY row — across variant sub-rows and rows filtered out of the current view, not just the visible page — so callers can auto-hide columns irrelevant to a result set. Accessor columns (with accessorKey or accessorFn) are read via each row's value; display columns without an accessor are read from the product fields named in their meta.dataKeys. Columns that can't be hidden, and display columns without meta.dataKeys (whose emptiness can't be determined), are never reported.

    setColumnVisibility

    Sets the visibility of a column.