Stay organized with collections Save and categorize content based on your preferences.

blockly > Events > ToolboxItemSelect

Events.ToolboxItemSelect class

Notifies listeners that a toolbox item has been selected.


export declare class ToolboxItemSelect extends UiBase 

Extends: UiBase


Constructor Modifiers Description
(constructor)(opt_oldItem, opt_newItem, opt_workspaceId) Constructs a new instance of the ToolboxItemSelect class


Property Modifiers Type Description
newItem? string (Optional) The newly selected toolbox item.
oldItem? string (Optional) The previously selected toolbox item.
type string


Method Modifiers Description
fromJson(json) Decode the JSON event.
toJson() Encode the event as JSON.