Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Blockly > BlockRendering > Поле > (конструктор)
blockRendering.Field.(конструктор)
Создает новый экземпляр класса Field
.
Подпись:
constructor(constants: ConstantProvider, field: BlocklyField, parentInput: Input);
Параметры
Параметр | Тип | Описание |
---|
константы | Константпровайдер | Поставщик констант рендеринга. |
поле | Блоклифилд | Поле для измерения и хранения информации. |
родительский ввод | Вход | Родительский ввод для поля. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-04 UTC.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-01-04 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"]]