Skip to content

useTableSortable

@astryxdesign/core v0.7.1 · useTableSortable

Usage ​

Call useTableSortable with a config object containing sort state and callback. Pass the returned plugin to Table via the plugins prop.

ts
import { useTableSortable } from '@astryx-vue/core/Table'

Examples ​

useTableSortable — Sortable Columns

Alicealice@example.comEngineer32
Bobbob@example.comDesigner28
Charliecharlie@example.comManager45
Dianadiana@example.comEngineer37
Eveeve@example.comAdmin29

Table with sortable columns, click headers to sort ascending or descending.