You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `panel` component is a versatile [flex](./flex.md) container designed to group and organize elements within a layout. Panels are presented as individual tabs that can be moved to different positions by dragging the tabs around. By default, the top-level return of a `@ui.component` is automatically wrapped in a panel, so you only need to define a panel explicitly if you want to customize it. Customizations can include setting a custom tab title, background color or customizing the flex layout.
4
+
5
+
## Example
6
+
7
+
```python
8
+
from deephaven import ui
9
+
10
+
11
+
@ui.component
12
+
defui_panel():
13
+
text = ui.text_field()
14
+
15
+
return ui.panel(text, title="Text Field")
16
+
17
+
18
+
my_panel = ui_panel()
19
+
```
20
+
21
+
## Nesting
22
+
23
+
Panels can only be nested within [ui.row](./dashboard.md#row-api-reference), [ui.column](./dashboard.md#column-api-reference), [ui.stack](./dashboard.md#stack-api-reference) or [ui.dashboard](#./dashboard.md).
0 commit comments