ui.Map.insert
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, पैनल में दिए गए इंडेक्स पर विजेट डालता है.
यह पैनल दिखाता है.
इस्तेमाल | रिटर्न |
---|
Map.insert(index, widget) | ui.Panel |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.panel | ui.Panel | ui.Panel इंस्टेंस. |
index | नंबर | वह इंडेक्स जहां विजेट को डाला जाना है. |
widget | ui.Widget | वह विजेट जिसे डालना है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe \u003ccode\u003einsert\u003c/code\u003e function adds a ui.Widget to a ui.Panel at a designated index.\u003c/p\u003e\n"],["\u003cp\u003eThis function returns the modified ui.Panel, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003einsert\u003c/code\u003e takes the ui.Panel, the insertion index, and the ui.Widget as arguments.\u003c/p\u003e\n"]]],["The `insert` method of a `ui.Panel` allows adding a `ui.Widget` at a specific index within the panel. It requires the panel instance (`this: ui.panel`), the desired `index` (a number), and the `widget` to be inserted. The method's core action is inserting the provided widget at the designated location. It returns the same `ui.Panel` instance after the insertion.\n"],null,["# ui.Map.insert\n\n\u003cbr /\u003e\n\nInserts a widget into to the panel at the specified index.\n\n\u003cbr /\u003e\n\nReturns this panel.\n\n| Usage | Returns |\n|-----------------------------|----------|\n| Map.insert`(index, widget)` | ui.Panel |\n\n| Argument | Type | Details |\n|------------------|-----------|------------------------------------------|\n| this: `ui.panel` | ui.Panel | The ui.Panel instance. |\n| `index` | Number | The index at which to insert the widget. |\n| `widget` | ui.Widget | The widget to insert. |"]]