blockly > Ereignisse > ToolboxItemSelect
Klasse „Events.ToolboxItemSelect“
Benachrichtigt die Listener, dass ein Tool-Box-Element ausgewählt wurde.
Unterschrift:
export declare class ToolboxItemSelect extends UiBase
Erweitert:UiBase
Konstruktoren
| Konstruktor | Modifikatoren | Beschreibung |
|---|---|---|
| (constructor)(opt_oldItem, opt_newItem, opt_workspaceId) | Erstellt eine neue Instanz der Klasse ToolboxItemSelect. |
Attribute
| Attribut | Modifikatoren | Typ | Beschreibung |
|---|---|---|---|
| newItem? | String | Optional: Das neu ausgewählte Tool. | |
| oldItem? | String | Optional: Das zuvor ausgewählte Tool. | |
| type | EventType |
Methoden
| Methode | Modifikatoren | Beschreibung |
|---|---|---|
| toJson() | Codieren Sie das Ereignis als JSON. |