API reference: @salmonui/data-grid/engine
SortColumnCommandtype
import type { SortColumnCommand } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/sort.
type SortColumnCommand = {
type: 'sort.column';
columnId: ColumnId;
direction: 'asc' | 'desc';
multi?: boolean;
};
Sorts one column; multi keeps the other sorted columns.
| Name | Signature | Description |
|---|---|---|
type | type: 'sort.column'; | |
columnId | columnId: ColumnId; | |
direction | direction: 'asc' | 'desc'; | |
multioptional | multi?: boolean; |