onZoneNew
Zone creation handler
This example demonstrates how the onZoneNew callback
persists a newly created zone within the host application. Once the zone has been successfully stored, the result is returned to the widget through the
onResponse
callback.
Zone creation handler
onZoneNew: (zone: DIQ_Zone, onResponse: (result: DIQ_Result) => void) => {
// Save the zone to the application's database
database.saveZone(zone);
// Notify the widget that the operation completed successfully
onResponse({
success: true
});
};