onVariableFolderNew
Variable folder creation handler
This example demonstrates how the onVariableFolderNew 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.
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
});
};