با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > blockRendering > RenderInfo > addInput_
در صورت نیاز یک عنصر ورودی به ردیف فعال اضافه کنید و نوع ورودی را روی ردیف ثبت کنید.
امضا:
protected addInput_(input: Input, activeRow: Row): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
ورودی | ورودی | ورودی برای ثبت اطلاعات در مورد. |
activeRow | ردیف | ردیفی که در حال حاضر در حال پر شدن است. |
برمیگرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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"]]