Skip to main content

Home > 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

ParameterTypeDescription
newItemIToolboxItem | nullThe toolbox item to select.

Returns:

void