basic.SizedBox{Width:340,Height:150,Child:control.Tabs{Label:"Settings",Selected:1,OnChange:func(int){},Pages:[]control.TabPage{{Label:"General"},{Label:"Appearance",Child:basic.Padding{Insets:geom.All(theme.Space16),Child:basic.Text{Content:"The page of the chosen tab shows below the bar.",}}},{Label:"Advanced"},},}}
The column of places at the left of a window. It draws its own ground and the hairline at its right edge; put it first in a Row with CrossStretch. Width sets its width, 208 when zero. When the rows do not fit, they alone scroll: the title, the Header under it, such as a search field, and the Footer pinned at the bottom, such as buttons, stay. The selected row takes the AccentTint ground. The Count of a SidebarItem, such as of unread messages, shows in a quiet pill at the end of the row, and a screen reader hears it once, as the value of the row. A Detail is a smaller second line in Ink2 (on the selected row in the colors of theme.Colors.OnTint, which read on the tint, as is its count), such as the last message of a chat, cut to one line with an ellipsis; a row with one is 46 high, and a screen reader hears the whole detail once, as the description of the row. Leading puts a widget in place of the Icon, such as the colored dot of a mail label; on the selected row it is built under the OnTint theme, so that what takes the colors of the theme reads on the tint, while a color of its own, as that of the dot, stays.
trail:=[]nav.BreadcrumbItem{{Label:"Home",Icon:icons.Folder()},{Label:"Documents"},{Label:"Projects"},{Label:"gowaku"},{Label:"widgets"},}returnbasic.Column{Size:layout.MainMin,Cross:layout.CrossStart,Spacing:theme.Space12,Children:[]core.Widget{basic.SizedBox{Width:480,Child:nav.Breadcrumb{Items:trail,OnSelect:func(int){}}},// Where the trail does not fit, the middle folds into a menu.basic.SizedBox{Width:260,Child:nav.Breadcrumb{Items:trail,OnSelect:func(int){}}},}}
Shows where a flow of several steps is, such as a wizard or a checkout: a numbered circle and a name for each step, joined by lines. The steps before Current are done and show a check; the current one has a circle in the accent and a bold name. With OnStepPress, the done steps can be pressed to go back, and Tab and Enter or Space reach them. A screen reader hears a list of the steps, each with its name, its place, such as 2 of 3, and "Current step" or "Completed". For the minus and plus buttons of a number, see control.NumberStepper.
labels:=[]string{"Account","Shipping","Payment","Review"}returnbasic.Column{Size:layout.MainMin,Cross:layout.CrossStretch,Spacing:theme.Space20,Children:[]core.Widget{nav.Steps{Labels:labels,Current:2,OnStepPress:func(int){}},// Every step done.nav.Steps{Labels:labels[:3],Current:3},}}
basic.SizedBox{Width:360,Height:190,Child:nav.Navigator{Home:noteList{},// its rows call NavigatorOf(ctx).PushNamed("/notes/1")Routes:[]nav.RoutePattern{{Pattern:"/notes/:id",Build:func(pnav.RouteParams)core.Widget{i,_:=p.Int("id")returnnotePage{index:i}}}},}}