Events
Copy
You can add and remove Events using the “on” and “off” public methods.
Each event listener callback accepts a single parameter: an event object of the type “CustomEvent” containing a “detail” property with specific event information.
addRow
Event fired after each row is added to the grid when adding rows using the “addRows” or “loadData” methods.
Table 5: Property details for addRow
| Name | Type | Description |
| rowId | String | ID of the added row. |
| parentId | String | ID of the parent row. Null if added row is root. |
addRows
Event fired after all rows are added using the “addRows” or “loadData” methods.
Table 6: Property details for addRows
| Name | Type | Description |
| rowIds | Array | Added row IDs. |
| parentId | String | ID of the parent row. The ID is Null if the added row is root. |
removeRow
Event fired after deleting a row from the grid using the “removeRow” method. Table 7: Property details for removeRow
| Name | Type | Description |
| rowIds | Array | IDs of the deleted rows. Array contains ID of the deleted row and IDs of all descendant rows. |
| parentId | String | ID of the parent row. The ID is Null if the deleted row is a root row. |
removeAllRows
Event fired after deleting all rows from the grid using the “removeAllRows” method. Table 8: Property details for removeRows
| Name | Type | Description |
| rowIds | Array | IDs of the deleted rows. |
addColumn
Event fired after adding a new column using the “addColumn” or “loadData” methods. Table 9: Property details for addColumn
| Name | Type | Description |
| columnName | String | Column name. |
removeColumn
Event fired after deleting a column using the “removeColumn” method. Table 10: Property details for removeColumn
| Name | Type | Description |
| columnName | String | Column name. |