SortingOptionsBase

external interface SortingOptionsBase<TData : RowData>(source)

Inheritors

Properties

Link copied to clipboard
abstract var enableMultiRemove: Boolean?

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

Link copied to clipboard
abstract var enableMultiSort: Boolean?

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

Link copied to clipboard
abstract var enableSorting: Boolean?

Enables/Disables sorting for the table. API Docs Guide

Link copied to clipboard

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

Link copied to clipboard
abstract var 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 var 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 var 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 var maxMultiSortColCount: Int?

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

Link copied to clipboard

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 var sortDescFirst: Boolean?

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