Skip to main content

Home > blockly > IToolbox > setSelectedItem

IToolbox.setSelectedItem() method

Sets the selected item.

Signature:

setSelectedItem(item: IToolboxItem | null): void;

Parameters

ParameterTypeDescription
itemIToolboxItem | nullThe toolbox item to select, or null to remove the current selection.

Returns:

void