WIP components (as built)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 15:51:57 -04:00
1 parent 1095ed2b9d
commit 7e4f275f0a
80 files changed
+2754 -132

No files matched your search

+6 -1
View File
@@ -54,6 +54,11 @@ func Tabs(c *ui.Context, selected *int, tabs []Tab, opts TabsOptions) ChoiceResu
}
}
root := ui.Column(c).AlignItems(ui.Stretch)
if root.IsDisabled() {
for _, key := range []ui.Key{ui.KeyRight, ui.KeyDown, ui.KeyLeft, ui.KeyUp, ui.KeyHome, ui.KeyEnd} {
root.Shortcut(0, key)
}
}
if opts.Vertical {
root.Row()
}
@@ -96,7 +101,7 @@ func Tabs(c *ui.Context, selected *int, tabs []Tab, opts TabsOptions) ChoiceResu
built[i] = tab
}
})
if list.Changed() {
if !list.IsDisabled() && list.Changed() {
prev := *selected
*selected = enabled[at]
res.changed = true