Skip to main content

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

ParameterTypeDescription
oldItemISelectableToolboxItem | nullThe previously selected toolbox item.
newItemISelectableToolboxItemThe newly selected toolbox item.

Returns:

void