Skip to main content

Home > blockly > ToolboxCategory > updateFlyoutContents

ToolboxCategory.updateFlyoutContents() method

Updates the contents to be displayed in the flyout. If the flyout is open when the contents are updated, refreshSelection on the toolbox must also be called.

Signature:

updateFlyoutContents(contents: FlyoutDefinition | string): void;

Parameters

ParameterTypeDescription
contentsFlyoutDefinition | stringThe contents to be displayed in the flyout. A string can be supplied to create a dynamic category.

Returns:

void