[ type ] ColumnEvent
Description:
Represents a table column event triggered by a Table component.
Type: Object
Properties:
| Name | Type | Description |
|---|---|---|
|
The Table component that triggered the event. |
|
|
string | Type of the column event: |
|
number | Column index. Present when type is |
|
number | Previous column index. Present when type is |
|
number | New column index. Present when type is |
|
number | Previous column size. Present when type is |
|
number | New column size. Present when type is |
|
boolean | Present for |
Examples:
Insert column:
const e = {
target: table,
type: "insert",
index: 2
};
Move column:
const e = {
target: table,
type: "move",
fromIndex: 1,
toIndex: 4,
interactive: true //
};
Resize column:
const e = {
target: table,
type: "resize",
index: 3,
fromSize: 120,
toSize: 200
};
