Switcher
March 28, 2026 · View on GitHub
Content switcher showing one child pane at a time.
Constructor: NewSwitcher(id, class string) *Switcher
Methods
Add(widget Widget)— appends a content paneChildren() []Widget— returns all panesSelect(index any)— shows pane byintindex orstringIDSelected() int— returns current pane index
Events
| Event | Data | Description |
|---|---|---|
"hide" | — | Pane became hidden |
"show" | — | Pane became visible |
Notes
Can auto-connect to a Tabs widget via the Builder's connect parameter.