Skip to main content

blockly > Toolbox > setSelectedItem

Toolbox.setSelectedItem() method

Sets the given item as selected. No-op if the item is not selectable.

Signature:

setSelectedItem(newItem: IToolboxItem | null): void;

Parameters

Parameter

Type

Description

newItem

IToolboxItem | null

The toolbox item to select.

Returns:

void