blockly > Events > TrashcanOpen
Events.TrashcanOpen class
Notifies listeners when the trashcan is opening or closing.
Signature:
export declare class TrashcanOpen extends UiBase
Extends: UiBase
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(opt_isOpen, opt_workspaceId) | Constructs a new instance of the TrashcanOpen class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| isOpen? | boolean | (Optional) True if the trashcan is currently opening (previously closed). False if it is currently closing (previously open). | |
| type | EventType |
Methods
| Method | Modifiers | Description |
|---|---|---|
| toJson() | Encode the event as JSON. |