Stay organized with collections Save and categorize content based on your preferences.

blockly > WorkspaceSvg > getToolboxCategoryCallback

WorkspaceSvg.getToolboxCategoryCallback() method

Get the callback function associated with a given key, for populating custom toolbox categories in this workspace.


getToolboxCategoryCallback(key: string): ((p1: WorkspaceSvg) => toolbox.FlyoutDefinition) | null;


Parameter Type Description
key string The name to use to look up the function.


((p1: WorkspaceSvg) => toolbox.FlyoutDefinition) | null

The function corresponding to the given key for this workspace, or null if no function is registered.