Skip to main content

blockly > Toolbox > selectItem_

Toolbox.selectItem_() method

Selects the given item, marks it selected, and updates aria state.

Signature:

protected selectItem_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem): void;

Parameters

Parameter

Type

Description

oldItem

ISelectableToolboxItem | null

The previously selected toolbox item.

newItem

ISelectableToolboxItem

The newly selected toolbox item.

Returns:

void