ui.SplitPanel.setPanel
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."],[[["`SplitPanel.setPanel()` allows you to specify a UI panel to be displayed within a split panel, replacing the existing panel at the specified index."],["The `index` parameter designates the target panel (0 for top/left, 1 for bottom/right) within the split panel layout."],["This method is used for dynamic modification of content within a split panel UI element."]]],[]]