Stay organized with collections
Save and categorize content based on your preferences.
blockly > blockRendering > InputRow
An object containing information about a row that holds one or more inputs.
Signature:
export declare class InputRow extends Row
Extends: Row
Constructors
Properties
Property |
Modifiers |
Type |
Description |
connectedBlockWidths |
|
number |
The total width of all blocks connected to this row. |
Methods
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\u003eblockRendering.InputRow\u003c/code\u003e class, extending the \u003ccode\u003eRow\u003c/code\u003e class, stores information about a row containing one or more inputs in a Blockly block.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003econnectedBlockWidths\u003c/code\u003e, representing the total width of connected blocks, and methods like \u003ccode\u003emeasure()\u003c/code\u003e for size calculations and \u003ccode\u003eendsWithElemSpacer()\u003c/code\u003e for layout checks.\u003c/p\u003e\n"],["\u003cp\u003eThis class is crucial for organizing and rendering input elements within Blockly blocks, ensuring proper alignment and visual representation.\u003c/p\u003e\n"]]],["The `InputRow` class, extending `Row`, manages rows containing inputs within a block rendering system. It is constructed with constants and tracks the combined width of all connected blocks via the `connectedBlockWidths` property. Core actions include measuring the row's subcomponents to determine its overall size with the `measure()` method. Additionally it can check if a row ends with an element spacer using the method `endsWithElemSpacer()`.\n"],null,["[blockly](./blockly.md) \\\u003e [blockRendering](./blockly.blockrendering_namespace.md) \\\u003e [InputRow](./blockly.blockrendering_namespace.inputrow_class.md)\n\nblockRendering.InputRow class\n-----------------------------\n\nAn object containing information about a row that holds one or more inputs.\n\n**Signature:** \n\n export declare class InputRow extends Row \n\n**Extends:** [Row](./blockly.blockrendering_namespace.row_class.md)\n\nConstructors\n------------\n\n| Constructor | Modifiers | Description |\n|--------------------------------------------------------------------------------------------------------------|-----------|---------------------------------------------------|\n| [(constructor)(constants)](./blockly.blockrendering_namespace.inputrow_class._constructor__1_constructor.md) | | Constructs a new instance of the `InputRow` class |\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|------------------------------------------------------------------------------------------------------------|-----------|--------|------------------------------------------------------|\n| [connectedBlockWidths](./blockly.blockrendering_namespace.inputrow_class.connectedblockwidths_property.md) | | number | The total width of all blocks connected to this row. |\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|----------------------------------------------------------------------------------------------------------|-----------|------------------------------------------------------------------------|\n| [endsWithElemSpacer()](./blockly.blockrendering_namespace.inputrow_class.endswithelemspacer_1_method.md) | | |\n| [measure()](./blockly.blockrendering_namespace.inputrow_class.measure_1_method.md) | | Inspect all subcomponents and populate all size properties on the row. |"]]