סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > נהלים > IProcedureModel > insertParameter
שיטת Procedures.IProcedureModel.insertParameter()
מוסיפה פרמטר לרשימת הפרמטרים.
כדי להעביר פרמטר, קודם מוחקים אותו ואז מוסיפים אותו מחדש.
Signature:
insertParameter(parameterModel: IParameterModel, index: number): this;
פרמטרים
החזרות:
זה
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-12 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-12 (שעון UTC)."],[[["The `insertParameter` method adds a parameter to a procedure's parameter list within Blockly's Procedures namespace."],["To reposition a parameter, it must first be removed with a separate operation and then reinserted using `insertParameter` at the desired index."],["The method requires an `IParameterModel` object representing the new parameter and an index specifying its position within the list."]]],[]]