IDataTableSortProps
interface
Data Table
Props controlling the sort state of a data table — active sort keys, a custom comparator, multi-column sort, and the mustSort constraint.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- sortByArray<IDataTableSortItem>
- Array of sort descriptors (key + optional direction) currently active on the table.
- customKeySortTDataTableCompareFunction
- Custom comparator function called instead of the default string/number sort when sorting by a given column key.
- multiSortboolean
- Allow the user to sort by multiple columns simultaneously.
- mustSortboolean
- Prevent the sort from being cleared — once a column is sorted it cycles between asc and desc only.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Binding sort props on a data table