ui.SplitPanel.setPanel
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงผลแผงที่ขอในแผงที่แยก
การใช้งาน | การคืนสินค้า |
---|
SplitPanel.setPanel(index, panel) | ui.Panel |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.splitpanel | ui.SplitPanel | อินสแตนซ์ ui.SplitPanel |
index | ตัวเลข | 0 สำหรับแผงด้านบนหรือด้านซ้าย 1 สำหรับแผงด้านล่างหรือด้านขวา |
panel | ui.Panel | แผงที่จะเพิ่มลงในแผงแบบแยก |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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. |"]]