ui.SplitPanel.setPanel
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
स्प्लिट पैनल में, अनुरोध किया गया पैनल दिखाता है.
इस्तेमाल | रिटर्न |
---|
SplitPanel.setPanel(index, panel) | ui.Panel |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.splitpanel | ui.SplitPanel | ui.SplitPanel इंस्टेंस. |
index | नंबर | ऊपर या बाईं ओर मौजूद पैनल के लिए 0 और नीचे या दाईं ओर मौजूद पैनल के लिए 1. |
panel | ui.Panel | स्प्लिट पैनल में जोड़ने के लिए पैनल. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003e\u003ccode\u003eSplitPanel.setPanel()\u003c/code\u003e allows you to specify a UI panel to be displayed within a split panel, replacing the existing panel at the specified index.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eindex\u003c/code\u003e parameter designates the target panel (0 for top/left, 1 for bottom/right) within the split panel layout.\u003c/p\u003e\n"],["\u003cp\u003eThis method is used for dynamic modification of content within a split panel UI element.\u003c/p\u003e\n"]]],[],null,["# ui.SplitPanel.setPanel\n\n\u003cbr /\u003e\n\nReturns the requested panel in the split panel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------|----------|\n| SplitPanel.setPanel`(index, panel)` | ui.Panel |\n\n| Argument | Type | Details |\n|-----------------------|---------------|-------------------------------------------------------|\n| this: `ui.splitpanel` | ui.SplitPanel | The ui.SplitPanel instance. |\n| `index` | Number | 0 for top or left panel, 1 for bottom or right panel. |\n| `panel` | ui.Panel | The panel to add to the split panel. |"]]