Infinite Table Column API

When rendering the InfiniteTable component, you can get access to the Column API through various column render props (for example, the columns.header render prop).

For the root API see the API page. For API on row/group selection, see the Selection API page. See the Infinite Table Row Detail API page for the row detail API (when master-detail is configured).

clearSort

Clears the sorting for the current column.

clearSort

() => void

Clears the sorting for the current column.

getSortDir

()=> 1|-1|null

Returns the sorting currently applied to the current column. Aliased to getSortingForColumn.

hideContextMenu

() => void

Hides the column context menu, if visible.

isSortable

()=> boolean

Returns whether the current column is sortable.

setSort

(sortDir: 1|-1|null) => void

Sets the sort direction for the current column.

setSort

(dir: 1|-1|null) => void

Sets the sorting for the current column. Aliased to setSortingForColumn.

showContextMenu

() => void

Shows the column context menu, if not already visible.

toggleContextMenu

() => void

Toggles the column context menu.

toggleSort

(options?) => void

Toggles the sorting for the current column. Aliased to toggleSortingForColumn.