Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Procedury > IProcedureModel > insertParameter
Metoda Procedures.IProcedureModel.insertParameter()
Wstawia parametr na liście parametrów.
Aby przenieść parametr, najpierw usuń go i wstaw ponownie.
Podpis:
insertParameter(parameterModel: IParameterModel, index: number): this;
Parametry
Zwroty:
to
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-12 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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."]]],["The `insertParameter` method, part of the `Procedures.IProcedureModel`, adds a parameter to a list of parameters. It takes two inputs: `parameterModel` of type `IParameterModel`, and `index` (a number), specifying the insertion point. To move a parameter, one must first delete it and then use this function to re-insert it at the intended `index`. This method returns the instance of the object it was called on.\n"]]