Search.../

onDataChange( )

Adds an event handler that runs when the table's data is changed.

Description

A table receives a dataChange event when the table's data is changed using the rows property.

Syntax

function onDataChange(eventHandler: EventHandler): void
eventHandler: function EventHandler(event: Event): void

onDataChange Parameters

NAME
TYPE
DESCRIPTION
eventHandler

The name of the function or the function expression to run when the table's data is changed.

Returns

This function does not return anything.

Return Type:

void

EventHandler Parameters

NAME
TYPE
DESCRIPTION
event

The event that occurred.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

Get the values of the updated table rows

Copy Code
1$w("#myTable").onDataChange( (event) => {
2 let tableRows = event.target.rows;
3} );