Search.../

onPropsChanged( )

Adds an event handler that runs when the value of a widget property is changed.

Description

A widget receives an onPropsChanged event when one or more of its properties is changed via its API.

Authorization

Request

This endpoint does not take any parameters

Response Object

Returns an empty object.

Status/Error Codes

Was this helpful?

Load updated data when a widget's property is changed

Copy Code
1$widget.onPropsChanged((oldProps, newProps) => {
2 loadProductData(newProps.productId);
3 loadCustomerData(newProps.customerId);
4});