Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.SplitPanel.setPanel
Stay organized with collections
Save and categorize content based on your preferences.
Returns the requested panel in the split panel.
Usage | Returns | SplitPanel.setPanel(index, panel) | ui.Panel |
Argument | Type | Details | this: ui.splitpanel | ui.SplitPanel | The ui.SplitPanel instance. |
index | Number | 0 for top or left panel, 1 for bottom or right panel. |
panel | ui.Panel | The panel to add to the split panel. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 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. |"]]