blockly > Events > ToolboxItemSelect
Events.ToolboxItemSelect class
Notifies listeners that a toolbox item has been selected.
Signature:
export declare class ToolboxItemSelect extends UiBase
Extends: UiBase
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(opt_oldItem, opt_newItem, opt_workspaceId) | Constructs a new instance of the ToolboxItemSelect class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| newItem? | string | (Optional) The newly selected toolbox item. | |
| oldItem? | string | (Optional) The previously selected toolbox item. | |
| type | EventType |
Methods
| Method | Modifiers | Description |
|---|---|---|
| toJson() | Encode the event as JSON. |