blockly > Procedures > IParameterModel > setProcedureModel
Procedures.IParameterModel.setProcedureModel() method
Sets the procedure model this parameter is associated with.
Signature:
setProcedureModel(model: IProcedureModel): this;
Parameters
Returns:
this
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `setProcedureModel` method associates a parameter model with a specific procedure model."],["It takes an `IProcedureModel` object as input, representing the procedure to link with."],["The method returns the current `IParameterModel` instance, allowing for method chaining."]]],["The `setProcedureModel()` method, part of the `IParameterModel` interface, associates a parameter with a procedure model. It accepts one parameter, `model`, of type `IProcedureModel`. This method configures the `IProcedureModel` to which the parameter belongs. It returns `this`, enabling method chaining. The core action is to link a parameter to its corresponding procedure.\n"]]