useSortedItems

DataTable
stable

API

Signature

Signature TypeScript complète extraite du fichier du composable.

typescript

API

Paramètres

Paramètres d'entrée acceptés par ce composable.

props
requis
{ customKeySort: TDataTableCompareFunction | undefined }
items
requis
Ref<T[]>
sortBy
requis
Ref<Array<IDataTableSortItem>>
options
{ transform?: (item: T) => Record<string, unknown> sortFunctions?: Ref<Record<string, TDataTableCompareFunction> | undefined> sortRawFunctions?: Ref<Record<string, TDataTableCompareFunction> | undefined> }