Stay organized with collections
Save and categorize content based on your preferences.
blockly > blockRendering > RenderInfo > addInput_
Add an input element to the active row, if needed, and record the type of the input on the row.
Signature:
protected addInput_(input: Input, activeRow: Row): void;
Parameters
Parameter |
Type |
Description |
input |
Input |
The input to record information about. |
activeRow |
Row |
The row that is currently being populated. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eaddInput_\u003c/code\u003e method is used within the Blockly block rendering process to manage the visual representation of block inputs.\u003c/p\u003e\n"],["\u003cp\u003eIt specifically adds an input element to the current row being rendered and stores information about the input type.\u003c/p\u003e\n"],["\u003cp\u003eThis method is crucial for correctly positioning and displaying inputs within a block's visual structure during rendering.\u003c/p\u003e\n"]]],["The `addInput_()` method, part of `RenderInfo`, adds an input element to a row being actively built. It records the input's type on that row. This method accepts two parameters: the `Input` itself and the `Row` it's being added to. Its role is to populate a specified row with information regarding the provided input. The method does not return a value.\n"],null,["[blockly](./blockly.md) \\\u003e [blockRendering](./blockly.blockrendering_namespace.md) \\\u003e [RenderInfo](./blockly.blockrendering_namespace.renderinfo_class.md) \\\u003e [addInput_](./blockly.blockrendering_namespace.renderinfo_class.addinput__1_method.md)\n\nblockRendering.RenderInfo.addInput_() method\n--------------------------------------------\n\nAdd an input element to the active row, if needed, and record the type of the input on the row.\n\n**Signature:** \n\n protected addInput_(input: Input, activeRow: Row): void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|--------------------------------------------------------|--------------------------------------------|\n| input | [Input](./blockly.input_class.md) | The input to record information about. |\n| activeRow | [Row](./blockly.blockrendering_namespace.row_class.md) | The row that is currently being populated. |\n\n**Returns:**\n\nvoid"]]