onConstantFolderUpdate
Constant folder update handler
This example demonstrates how the onConstantFolderUpdate 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.
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
});
};