blockly > Events > VarBase

Events.VarBase class

Abstract class for a variable event.

Signature:

export declare class VarBase extends AbstractEvent 

Extends: AbstractEvent

Constructors

Constructor Modifiers Description
(constructor)(opt_variable) Constructs a new instance of the VarBase class

Properties

Property Modifiers Type Description
isBlank boolean
varId? string (Optional) The ID of the variable this event references.

Methods

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