onZoneDelete
Zone deletion handler
This example demonstrates how the onZoneDelete callback
removes an existing zone from the host application's persistent storage. Once the zone has been successfully deleted, the result is returned to the widget through
the
onResponse
callback.
Zone deletion handler
onZoneDelete: (zone: DIQ_Zone, onResponse: (result: DIQ_Result) => void) => {
// Delete the zone from the application's database
database.deleteZone(zone.key);
// Notify the widget that the operation completed successfully
onResponse({
success: true
});
};