blockly > ISelectableToolboxItem > getContents

ISelectableToolboxItem.getContents() method

Gets the contents of the toolbox item. These are items that are meant to be displayed in the flyout.

Signature:

getContents(): FlyoutItemInfoArray | string;

Returns:

FlyoutItemInfoArray | string

The definition of items to be displayed in the flyout.