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