Stay organized with collections
Save and categorize content based on your preferences.
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. |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `Procedures.IParameterModel` interface defines a data model for procedure parameters in Blockly."],["It includes methods to manage a parameter's ID, name, and types, as well as its association with a procedure model."],["`IParameterModel` provides functionality to save and load the parameter's state using JSON serialization."],["Developers can use this interface to interact with and manipulate procedure parameter data within Blockly applications."]]],[]]