blockly > Toolbox > getSelectedItem

Toolbox.getSelectedItem() method

Gets the selected item.

Signature:

getSelectedItem(): ISelectableToolboxItem | null;

Returns:

ISelectableToolboxItem | null

The selected item, or null if no item is currently selected.