SortingOptions

Properties

Link copied to clipboard
abstract external val enableMultiRemove: Boolean?

Enables/disables the ability to remove multi-sorts API Docs Guide

Link copied to clipboard
abstract external val enableMultiSort: Boolean?

Enables/Disables multi-sorting for the table. API Docs Guide

Link copied to clipboard
abstract external val enableSorting: Boolean?

Enables/Disables sorting for the table. API Docs Guide

Link copied to clipboard
abstract external val enableSortingRemoval: Boolean?

Enables/Disables the ability to remove sorting for the table.

Link copied to clipboard
abstract external val getSortedRowModel: (table: Table<TData>) -> () -> RowModel<TData>?

This function is used to retrieve the sorted row model. If using server-side sorting, this function is not required. To use client-side sorting, pass the exported getSortedRowModel() from your adapter to your table or implement your own. API Docs Guide

Link copied to clipboard
abstract external val isMultiSortEvent: (e: Any) -> Boolean?

Pass a custom function that will be used to determine if a multi-sort event should be triggered. It is passed the event from the sort toggle handler and should return true if the event should trigger a multi-sort. API Docs Guide

Link copied to clipboard
abstract external val manualSorting: Boolean?

Enables manual sorting for the table. If this is true, you will be expected to sort your data before it is passed to the table. This is useful if you are doing server-side sorting. API Docs Guide

Link copied to clipboard
abstract external val maxMultiSortColCount: Int?

Set a maximum number of columns that can be multi-sorted. API Docs Guide

Link copied to clipboard
abstract external val onSortingChange: OnChangeFn<SortingState>?

If provided, this function will be called with an updaterFn when state.sorting changes. This overrides the default internal state management, so you will need to persist the state change either fully or partially outside of the table. API Docs Guide

Link copied to clipboard
abstract external val sortDescFirst: Boolean?

If true, all sorts will default to descending as their first toggle state. API Docs Guide