Sort
@xngui/cdk/sort@xngui/cdk/sortHeadless sort column + direction state.
Preview
Shift+click a column to add it to the sort stack.
Active sort: none
- Ada Lovelace
- Grace Hopper
- Alan Turing
- Katherine Johnson
import { XSortState } from '@xngui/cdk/sort';
const sort = new XSortState();
sort.toggle('name'); // primary column
sort.toggle('role', { additive: true }); // Shift+click / secondary
sort.sort(); // → []
sort.clear();
Events
Interact with the preview — events will appear here.