ChemPal Documentation - v1.15.1
    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. A column with meta.dataKeys is judged from those raw product fields (this takes precedence, so an accessor's constant fallback can't mask an empty column); otherwise accessor columns are read via each row's value. Columns that can't be hidden, and non-accessor columns without meta.dataKeys (whose emptiness can't be determined), are never reported.

    setColumnVisibility

    Sets the visibility of a column.