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