Skip to main content

onVariableFolderNew

Last updated 23/07/2026

Variable folder creation handler

This example demonstrates how the

callback persists a newly created variable folder within the host application. Once the folder has been successfully stored, the result is returned to the widget through the

onResponse
callback.

TypeScript
Variable folder creation handler
onVariableFolderNew: (folder: DIQ_VariableFolder, onResponse: (result: DIQ_Result) => void) => {

// Save the folder to the application's database
database.saveVariableFolder(folder);

// Notify the widget that the operation completed successfully
onResponse({
success: true
});

};