basic.SizedBox{Width:520,Child:nav.StatusBar{Leading:[]nav.StatusItem{{Text:"Ln 12, Col 4",Priority:2},{Text:"No selection"},},Trailing:[]nav.StatusItem{{Text:"UTF-8",Tooltip:"Encoding",OnPress:func(){},Priority:1},{Text:"LF"},{Text:"Go",Priority:1},},}}
Document tabs that close, reorder, and tear off into another window. A tab with unsaved changes shows a dot, which turns into the close button under the pointer.
icon:=icons.Document()returnbasic.SizedBox{Width:520,Child:nav.TabBar{Label:"Files",Selected:1,Tabs:[]nav.TabItem{{Key:"readme",Label:"README.md",Icon:icon,Modified:true},{Key:"main",Label:"main.go",Icon:icon},{Key:"long",Label:"A long name that does not fit.txt",Icon:icon},},OnSelect:func(int){},OnClose:func(int){},OnNew:func(){},OnMove:func(int,int){},}}
themed(func(th*theme.Theme)core.Widget{returnbasic.Container{Width:480,Height:200,Color:th.Color.Card,Radius:th.Radius.Group,Border:paint.Stroke{Width:1,Color:th.Color.Hair},Child:control.SplitPane{Position:160,Pixels:true,MinFirst:120,MinSecond:200,Collapsible:control.SplitCollapseFirst,First:basic.Container{Color:th.Color.Sidebar,Radius:th.Radius.Group,Padding:geom.All(theme.Space12),Child:basic.Text{Content:"Sidebar"}},Second:basic.Padding{Insets:geom.All(theme.Space12),Child:basic.Text{Content:"Drag the divider, or press Enter on it to fold the sidebar."}},},}})
Arranges groups of tabs as an IDE does. Dragging a divider resizes, and dragging a tab moves it between groups or to an edge, keeping its state. The arrangement saves and restores as a DockArrangement.