blockly > Events > BlockBase

Events.BlockBase class

Abstract class for any event related to blocks.

Signature:

export declare class BlockBase extends AbstractEvent 

Extends: AbstractEvent

Constructors

Constructor Modifiers Description
(constructor)(opt_block) Constructs a new instance of the BlockBase class

Properties

Property Modifiers Type Description
blockId? string (Optional) The ID of the block associated with this event.
isBlank boolean

Methods

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