[ type ] SortEvent
Description:
Represents a table sort event triggered by a Table component.
Type: Object
Properties:
| Name | Type | Description |
|---|---|---|
|
The Table component that triggered the event. |
|
|
Sort order state: |
|
|
number | Column index. Present when type is not |
|
number | New column index after reordering. Present when type is not |
|
boolean |
|
Examples:
Clear sorting:
const e = {
target: table,
type: Table.SortOrder.None,
interactive: true
};
Ascending sort:
const e = {
target: table,
type: Table.SortOrder.Ascending,
column: 2,
newOrderColumn: 0,
interactive: true
};
Descending sort:
const e = {
target: table,
type: Table.SortOrder.Descending,
column: 1,
newOrderColumn: 3,
interactive: false
};
