Circle V2 API Docs
    Preparing search index...
    interface Row<TData extends RowData> {
        _getAllCellsByColumnId: () => Record<string, Cell<TData, unknown>>;
        _getAllVisibleCells: () => Cell<TData, unknown>[];
        _groupingValuesCache: Record<string, any>;
        _uniqueValuesCache: Record<string, unknown>;
        _valuesCache: Record<string, unknown>;
        columnFilters: Record<string, boolean>;
        columnFiltersMeta: Record<string, FilterMeta>;
        depth: number;
        getAllCells: () => Cell<TData, unknown>[];
        getCanExpand: () => boolean;
        getCanMultiSelect: () => boolean;
        getCanPin: () => boolean;
        getCanSelect: () => boolean;
        getCanSelectSubRows: () => boolean;
        getCenterVisibleCells: () => Cell<TData, unknown>[];
        getGroupingValue: (columnId: string) => unknown;
        getIsAllParentsExpanded: () => boolean;
        getIsAllSubRowsSelected: () => boolean;
        getIsExpanded: () => boolean;
        getIsGrouped: () => boolean;
        getIsPinned: () => RowPinningPosition;
        getIsSelected: () => boolean;
        getIsSomeSelected: () => boolean;
        getLeafRows: () => Row<TData>[];
        getLeftVisibleCells: () => Cell<TData, unknown>[];
        getParentRow: () => Row<TData> | undefined;
        getParentRows: () => Row<TData>[];
        getPinnedIndex: () => number;
        getRightVisibleCells: () => Cell<TData, unknown>[];
        getToggleExpandedHandler: () => () => void;
        getToggleSelectedHandler: () => (event: unknown) => void;
        getUniqueValues: <TValue>(columnId: string) => TValue[];
        getValue: <TValue>(columnId: string) => TValue;
        getVisibleCells: () => Cell<TData, unknown>[];
        groupingColumnId?: string;
        groupingValue?: unknown;
        id: string;
        index: number;
        original: TData;
        originalSubRows?: TData[];
        parentId?: string;
        pin: (
            position: RowPinningPosition,
            includeLeafRows?: boolean,
            includeParentRows?: boolean,
        ) => void;
        renderValue: <TValue>(columnId: string) => TValue;
        subRows: Row<TData>[];
        toggleExpanded: (expanded?: boolean) => void;
        toggleSelected: (
            value?: boolean,
            opts?: { selectChildren?: boolean },
        ) => void;
    }

    Type Parameters

    • TData extends RowData

    Hierarchy

    • CoreRow<TData>
    • VisibilityRow<TData>
    • ColumnPinningRow<TData>
    • RowPinningRow
    • ColumnFiltersRow<TData>
    • GroupingRow
    • RowSelectionRow
    • ExpandedRow
      • Row
    Index

    Properties

    _getAllCellsByColumnId: () => Record<string, Cell<TData, unknown>>
    _getAllVisibleCells: () => Cell<TData, unknown>[]
    _groupingValuesCache: Record<string, any>
    _uniqueValuesCache: Record<string, unknown>
    _valuesCache: Record<string, unknown>
    columnFilters: Record<string, boolean>

    The column filters map for the row. This object tracks whether a row is passing/failing specific filters by their column ID.

    columnFiltersMeta: Record<string, FilterMeta>

    The column filters meta map for the row. This object tracks any filter meta for a row as optionally provided during the filtering process.

    depth: number

    The depth of the row (if nested or grouped) relative to the root row array.

    getAllCells: () => Cell<TData, unknown>[]

    Returns all of the cells for the row.

    getCanExpand: () => boolean

    Returns whether the row can be expanded.

    getCanMultiSelect: () => boolean

    Returns whether or not the row can multi-select.

    getCanPin: () => boolean

    Returns whether or not the row can be pinned.

    getCanSelect: () => boolean

    Returns whether or not the row can be selected.

    getCanSelectSubRows: () => boolean

    Returns whether or not the row can select sub rows automatically when the parent row is selected.

    getCenterVisibleCells: () => Cell<TData, unknown>[]

    Returns all center pinned (unpinned) leaf cells in the row.

    getGroupingValue: (columnId: string) => unknown

    Returns the grouping value for any row and column (including leaf rows).

    getIsAllParentsExpanded: () => boolean

    Returns whether all parent rows of the row are expanded.

    getIsAllSubRowsSelected: () => boolean

    Returns whether or not all of the row's sub rows are selected.

    getIsExpanded: () => boolean

    Returns whether the row is expanded.

    getIsGrouped: () => boolean

    Returns whether or not the row is currently grouped.

    getIsPinned: () => RowPinningPosition

    Returns the pinned position of the row. ('top', 'bottom' or false)

    getIsSelected: () => boolean

    Returns whether or not the row is selected.

    getIsSomeSelected: () => boolean

    Returns whether or not some of the row's sub rows are selected.

    getLeafRows: () => Row<TData>[]

    Returns the leaf rows for the row, not including any parent rows.

    getLeftVisibleCells: () => Cell<TData, unknown>[]

    Returns all left pinned leaf cells in the row.

    getParentRow: () => Row<TData> | undefined

    Returns the parent row for the row, if it exists.

    getParentRows: () => Row<TData>[]

    Returns the parent rows for the row, all the way up to a root row.

    getPinnedIndex: () => number

    Returns the numeric pinned index of the row within a pinned row group.

    getRightVisibleCells: () => Cell<TData, unknown>[]

    Returns all right pinned leaf cells in the row.

    getToggleExpandedHandler: () => () => void

    Returns a function that can be used to toggle the expanded state of the row. This function can be used to bind to an event handler to a button.

    getToggleSelectedHandler: () => (event: unknown) => void

    Returns a handler that can be used to toggle the row.

    getUniqueValues: <TValue>(columnId: string) => TValue[]

    Returns a unique array of values from the row for a given columnId.

    getValue: <TValue>(columnId: string) => TValue

    Returns the value from the row for a given columnId.

    getVisibleCells: () => Cell<TData, unknown>[]

    Returns an array of cells that account for column visibility for the row.

    groupingColumnId?: string

    If this row is grouped, this is the id of the column that this row is grouped by.

    groupingValue?: unknown

    If this row is grouped, this is the unique/shared value for the groupingColumnId for all of the rows in this group.

    id: string

    The resolved unique identifier for the row resolved via the options.getRowId option. Defaults to the row's index (or relative index if it is a subRow).

    index: number

    The index of the row within its parent array (or the root data array).

    original: TData

    The original row object provided to the table. If the row is a grouped row, the original row object will be the first original in the group.

    originalSubRows?: TData[]

    An array of the original subRows as returned by the options.getSubRows option.

    parentId?: string

    If nested, this row's parent row id.

    pin: (
        position: RowPinningPosition,
        includeLeafRows?: boolean,
        includeParentRows?: boolean,
    ) => void

    Pins a row to the 'top' or 'bottom', or unpins the row to the center if false is passed.

    renderValue: <TValue>(columnId: string) => TValue

    Renders the value for the row in a given columnId the same as getValue, but will return the renderFallbackValue if no value is found.

    subRows: Row<TData>[]

    An array of subRows for the row as returned and created by the options.getSubRows option.

    toggleExpanded: (expanded?: boolean) => void

    Toggles the expanded state (or sets it if expanded is provided) for the row.

    toggleSelected: (value?: boolean, opts?: { selectChildren?: boolean }) => void

    Selects/deselects the row.