ui.Panel
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
วิดเจ็ตที่เก็บวิดเจ็ตอื่นๆ ได้ ใช้แผงเพื่อสร้างชุดค่าผสมที่ซับซ้อนของวิดเจ็ตที่ซ้อนกัน
คุณเพิ่มแผงลงใน ui.root ได้ แต่จะพิมพ์ลงในคอนโซลด้วย print() ไม่ได้
การใช้งาน | การคืนสินค้า |
---|
ui.Panel(widgets, layout, style) | ui.Panel |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
widgets | List<ui.Widget>|ui.Widget, ไม่บังคับ | รายการวิดเจ็ตหรือวิดเจ็ตเดียวที่จะเพิ่มลงในแผง ค่าเริ่มต้นจะเป็นอาร์เรย์ที่ว่างเปล่า |
layout | String|ui.Panel.Layout, ไม่บังคับ | เลย์เอาต์ที่จะใช้สำหรับแผงนี้ หากมีการส่งสตริง ระบบจะถือว่าเป็นทางลัดไปยังตัวสร้างเลย์เอาต์ที่มีชื่อนั้น ค่าเริ่มต้นคือ "flow" |
style | ออบเจ็กต์ (ไม่บังคับ) | ออบเจ็กต์ของสไตล์ CSS ที่อนุญาตพร้อมค่าที่จะตั้งค่าสำหรับวิดเจ็ตนี้ ดูเอกสารประกอบเกี่ยวกับ style() |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003ePanels are widgets that can contain other widgets, enabling complex nested layouts within Earth Engine applications.\u003c/p\u003e\n"],["\u003cp\u003eThey are added to the \u003ccode\u003eui.root\u003c/code\u003e but cannot be printed to the console using \u003ccode\u003eprint()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003ePanel layouts can be customized using predefined options or by specifying CSS styles.\u003c/p\u003e\n"],["\u003cp\u003eInitialization involves providing a list of widgets (or a single widget), a layout type, and optional styling.\u003c/p\u003e\n"]]],["Panels, which are widgets that can contain other widgets, are created using `ui.Panel()`. They accept an optional list of `widgets`, a `layout` (defaulting to 'flow'), and a `style` object for CSS styling. Panels can be added to `ui.root` but cannot be printed using `print()`. The `layout` argument can be a string representing a shortcut to a layout constructor. Panels facilitate the construction of complex, nested widget structures.\n"],null,["# ui.Panel\n\n\u003cbr /\u003e\n\nA widget that can hold other widgets. Use panels to construct complex combinations of nested widgets.\n\n\u003cbr /\u003e\n\nPanels can be added to ui.root but not printed to the console with print().\n\n| Usage | Returns |\n|--------------------------------------------------|----------|\n| `ui.Panel(`*widgets* `, `*layout* `, `*style*`)` | ui.Panel |\n\n| Argument | Type | Details |\n|-----------|----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| `widgets` | List\\\u003cui.Widget\\\u003e\\|ui.Widget, optional | The list of widgets or a single widget to add to the panel. Defaults to an empty array. |\n| `layout` | String\\|ui.Panel.Layout, optional | The layout to use for this panel. If a string is passed in, it's taken as a shortcut to the layout constructor with that name. Defaults to 'flow'. |\n| `style` | Object, optional | An object of allowed CSS styles with their values to be set for this widget. See style() documentation. |"]]