Skip to main content

Home > blockly > Events > BlockBase

Events.BlockBase class

Abstract class for any event related to blocks.

Signature:

export declare class BlockBase extends AbstractEvent 

Extends: AbstractEvent

Constructors

ConstructorModifiersDescription
(constructor)(opt_block)Constructs a new instance of the BlockBase class

Properties

PropertyModifiersTypeDescription
blockId?string(Optional) The ID of the block associated with this event.
isBlankboolean

Methods

MethodModifiersDescription
toJson()Encode the event as JSON.