Module view_tabs
Expand description
Switching what a window’s content shows: ViewTabs.
A window that shows one of several views of its content (a request’s Params, Headers, Auth and Body; a container’s Logs, Stats, Inspect and Terminal) switches between them with tabs, and only with tabs. The tabs have the window tab bar’s look: no track, each tab as wide as its label, the chosen one a selector lifted off the ground it stands on.
A segmented control (ToggleGroup) is for choosing a value (an
alignment, a density, a unit). The two read differently on purpose, and
assistive technology meets them differently: tabs are a tab list whose
chosen tab is selected, a segmented control is a group of toggles one of
which is checked.
The strip is a ToggleGroup in its tab style underneath, so keyboard
(arrows, Home, End), touch (selection commits on release, so a scroll
never switches tabs), the published select action, scrolling when the
tabs are wider than their room, and theme changes behave the same as
every other strip.
Structs§
- View
Tabs - Tabs that switch the view of a window’s content.