[ type ] RowEvent
Description:
Represents a table row event triggered by a Table component Table > onRowEvents events.
Type: Object
Properties:
| Name | Type | Description |
|---|---|---|
|
The Table component that triggered the event. |
|
|
string | Type of the row event: |
|
number | Index of the affected row. Present when a single row is affected. |
|
number | Column index of the affected cell. Only present when type is |
|
number | Start index of affected row range. Present when multiple rows are affected. |
|
number | End index of affected row range. Present when multiple rows are affected. |
|
boolean | Only present when type is |
Examples:
Single row insert event:
const e = {
target: table,
type: "insert",
row: 3
};
Cell update by user:
const e = {
target: table,
type: "update",
row: 2,
column: 1,
interactive: true
};
Range removal:
const e = {
target: table,
type: "remove",
fromRow: 5,
toRow: 10
};
