Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Zablokuj > appendInput
Dołącza podany wiersz danych wejściowych.
Umożliwia dołączenie do bloku niestandardowych danych wejściowych.
Podpis:
appendInput(input: Input): Input;
Parametry
Parametr |
Typ |
Opis |
dane wejściowe |
Wejście |
|
Zwroty:
Wejście
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: 2025-07-25 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: 2025-07-25 UTC."],[[["The `appendInput()` method adds a new input row to a Blockly block, allowing customization."],["It takes an `Input` object as an argument and returns the same `Input` object, enabling chaining."],["This method is crucial for creating blocks with diverse and dynamic input options."]]],["The `Block.appendInput()` method adds a custom input row to a block. It takes an `Input` object as a parameter and appends it to the block. The method's signature is `appendInput(input: Input): Input`, and it returns the appended `Input` object. This functionality enables the dynamic addition of custom input elements to blocks, enhancing their flexibility and configurability.\n"]]