Skip to main content

onListConstantFolders

Last updated 23/07/2026

Constant folder listing handler

This example demonstrates how the

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.

TypeScript
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
);

};