blockly > VariableModel

VariableModel class

Class for a variable model. Holds information for the variable including name, ID, and type.

Signature:

export declare class VariableModel 

Constructors

Constructor Modifiers Description
(constructor)(workspace, name, opt_type, opt_id) Constructs a new instance of the VariableModel class

Properties

Property Modifiers Type Description
name string
type string
workspace Workspace

Methods

Method Modifiers Description
getId()