Skip to main content

onConstantFolderNew

Last updated 23/07/2026

Constant folder creation handler

This example demonstrates how the

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

onResponse
callback.

TypeScript
Constant folder creation handler
onConstantFolderNew: (folder: DIQ_ConstantFolder, onResponse: (result: DIQ_Result) => void) => {

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

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

};