Interface: IVariableBackedParameterModel
Defined in: packages/blockly/core/interfaces/i_variable_backed_parameter_model.ts:11
Interface for a parameter model that holds a variable model.
Extends
Methods index
| Method | Description |
|---|---|
| setName | Sets the name of this parameter to the given name. |
| setTypes | Sets the types of this parameter to the given type. |
| getName | Returns the name of this parameter. |
| getTypes | Return the types of this parameter. |
| getId | Returns the unique language-neutral ID for the parameter. |
| setProcedureModel | Sets the procedure model this parameter is associated with. |
| saveState | Serializes the state of the parameter to JSON. |
| getVariableModel | Returns the variable model held by this type. |
Methods
setName()
setName(name): this;
Defined in: packages/blockly/core/interfaces/i_parameter_model.ts:17
Sets the name of this parameter to the given name.
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
this
Inherited from
setTypes()
setTypes(types): this;
Defined in: packages/blockly/core/interfaces/i_parameter_model.ts:22
Sets the types of this parameter to the given type.
Parameters
| Parameter | Type |
|---|---|
types | string[] |
Returns
this
Inherited from
getName()
getName(): string;
Defined in: packages/blockly/core/interfaces/i_parameter_model.ts:27
Returns the name of this parameter.
Returns
string
Inherited from
getTypes()
getTypes(): string[];
Defined in: packages/blockly/core/interfaces/i_parameter_model.ts:32
Return the types of this parameter.
Returns
string[]
Inherited from
getId()
getId(): string;
Defined in: packages/blockly/core/interfaces/i_parameter_model.ts:40
Returns the unique language-neutral ID for the parameter.
This represents the identify of the variable model which does not change over time.
Returns
string
Inherited from
setProcedureModel()
setProcedureModel(model): this;
Defined in: packages/blockly/core/interfaces/i_parameter_model.ts:43
Sets the procedure model this parameter is associated with.
Parameters
| Parameter | Type |
|---|---|
model | IProcedureModel |
Returns
this
Inherited from
IParameterModel.setProcedureModel
saveState()
saveState(): ParameterState;
Defined in: packages/blockly/core/interfaces/i_parameter_model.ts:50
Serializes the state of the parameter to JSON.
Returns
JSON serializable state of the parameter.
Inherited from
getVariableModel()
getVariableModel(): IVariableModel<IVariableState>;
Defined in: packages/blockly/core/interfaces/i_variable_backed_parameter_model.ts:13
Returns the variable model held by this type.