blockly > Procedures > IProcedureModel
Procedures.IProcedureModel interface
A data model for a procedure.
Signature:
export interface IProcedureModel
Methods
Method | Description |
|---|---|
Removes the parameter at the given index from the parameter list. | |
Returns whether the procedure is enabled/disabled. If a procedure is disabled, all procedure caller blocks should be disabled as well. | |
Returns the unique language-neutral ID for the procedure. | |
Returns the human-readable name of the procedure. | |
Returns the parameter at the given index in the parameter list. | |
Returns an array of all of the parameters in the parameter list. | |
Returns the return type(s) of the procedure. Null represents a procedure that does not return a value. | |
Inserts a parameter into the list of parameters. To move a parameter, first delete it, and then re-insert. | |
Serializes the state of the procedure to JSON. | |
Sets whether this procedure is enabled/disabled. If a procedure is disabled all procedure caller blocks should be disabled as well. | |
Sets the human-readable name of the procedure. | |
Sets the return type(s) of the procedure. Pass null to represent a procedure that does not return. |