blockly > blockRendering > Champ > (constructeur)
blockRendering.Field.(constructor)
Construit une instance de la classe Field
.
Signature :
constructor(constants: ConstantProvider, field: BlocklyField, parentInput: Input);
Paramètres
Paramètre |
Type |
Description |
constants |
ConstantProvider |
Fournisseur de constantes de rendu. |
champ |
BlocklyField |
Champ pour lequel mesurer et stocker des informations. |
parentInput |
Entrée |
Saisie parente du champ. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/11/08 (UTC).
[null,null,["Dernière mise à jour le 2024/11/08 (UTC)."],[[["The `blockRendering.Field` constructor creates a new rendering object for a Blockly field."],["It uses a `ConstantProvider` for rendering settings, a `BlocklyField` for field data, and an `Input` to identify the field's parent."],["This constructor is essential for integrating fields into the block rendering process within Blockly."]]],["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"]]