Skip to main content

onConstantFolderUpdate

Last updated 23/07/2026

Constant folder update handler

This example demonstrates how the

callback persists changes made to an existing constant folder within the host application. Once the updated folder has been successfully stored, the result is returned to the widget through the

onResponse
callback.

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

// Update the folder in the application's database
database.updateConstantFolder(folder);

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

};