blockly > Events > BlockCreate
Events.BlockCreate class
Notifies listeners when a block (or connected stack of blocks) is created.
Signature:
export declare class BlockCreate extends BlockBase
Extends: BlockBase
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string[] | (Optional) All of the IDs of created blocks. | ||
(Optional) The JSON respresentation of the created block(s). | |||
EventType | |||
Element | DocumentFragment | (Optional) The XML representation of the created block(s). |
Methods
Method | Modifiers | Description |
|---|---|---|
Run a creation event. | ||
Encode the event as JSON. |