onVariableDelete
Variable deletion handler
This example demonstrates how the onVariableDelete callback
removes an existing variable from the host application. Once the variable has been successfully deleted, the result is returned to the widget through the
onResponse
callback.
Variable deletion handler
onVariableDelete: (variable: DIQ_Variable, onResponse: (result: DIQ_Result) => void) => {
// Remove the variable from the application's database
database.deleteVariable(variable.key);
// Notify the widget that the operation completed successfully
onResponse({
success: true
});
};