onZoneUpdate
Zone update handler
This example demonstrates how the onZoneUpdate callback
persists changes made to an existing zone within the host application. Once the updated zone has been successfully stored, the result is returned to the widget through the
onResponse
callback.
Zone update handler
onZoneUpdate: (zone: DIQ_Zone, onResponse: (result: DIQ_Result) => void) => {
// Update the zone in the application's database
database.updateZone(zone);
// Notify the widget that the operation completed successfully
onResponse({
success: true
});
};