blockly > Block > appendInput
Dołącza podany wiersz danych wejściowych.
Umożliwia dołączanie niestandardowych danych wejściowych do bloku.
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: 2024-11-08 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-08 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"]]