Home > blockly > IToolbox > setSelectedItem
IToolbox.setSelectedItem() method
Sets the selected item.
Signature:
setSelectedItem(item: IToolboxItem | null): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| item | IToolboxItem | null | The toolbox item to select, or null to remove the current selection. |
Returns:
void