onListConstantFolders
Constant folder listing handler
This example demonstrates how the onListConstantFolders callback
retrieves all constant folders from the host application's persistent storage. Once the folders have been retrieved, they are returned to the widget through the
onResponse
callback.
Constant folder listing handler
onListConstantFolders: (onResponse: (result: DIQ_Result, folders: Array<DIQ_ConstantFolder> | null) => void) => {
// Retrieve all constant folders from the application's database
const folders = database.getConstantFolders();
// Return the folders to the widget
onResponse(
{ success: true },
folders
);
};