Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > blockRendering > Pole > (konstruktor)
blockRendering.Field.(constructor)
Tworzy nową instancję klasy Field
Podpis:
constructor(constants: ConstantProvider, field: BlocklyField, parentInput: Input);
Parametry
| Parametr |
Typ |
Opis |
| stałe |
ConstantProvider |
Dostawca stałych renderowania. |
| pole |
BlocklyField |
Pole do pomiaru i przechowywania informacji. |
| parentInput |
Wejście |
Nadrzędne dane wejściowe pola. |
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.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["The `Field` class constructor initializes a new field instance within the Blockly rendering system. It requires three parameters: `constants`, a `ConstantProvider` defining rendering constants; `field`, a `BlocklyField` representing the actual field being rendered; and `parentInput`, an `Input` representing the field's parent input. This process involves storing information and setting up the field for display within the rendered Blockly block.\n"]]