blockly > Procedures > IParameterModel

Procedures.IParameterModel interface

A data model for a procedure.

Signature:

export interface IParameterModel 

Methods

Method Description
getId()

Returns the unique language-neutral ID for the parameter.

This represents the identify of the variable model which does not change over time.

getName() Returns the name of this parameter.
getTypes() Return the types of this parameter.
saveState() Serializes the state of the parameter to JSON.
setName(name) Sets the name of this parameter to the given name.
setProcedureModel(model) Sets the procedure model this parameter is associated with.
setTypes(types) Sets the types of this parameter to the given type.