LabelCheckbox sets its label as not selectable

This commit is contained in:
Sasha Koshka 2024-07-29 01:50:00 -04:00
parent e0f4ecb509
commit 572e0c49af

View File

@ -22,6 +22,8 @@ func NewLabelCheckbox (value bool, text string) *LabelCheckbox {
} }
box.SetRole(tomo.R("objects", "LabelCheckbox")) box.SetRole(tomo.R("objects", "LabelCheckbox"))
box.label.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignMiddle)) box.label.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignMiddle))
box.label.SetSelectable(false)
box.label.SetFocusable(false)
box.Add(box.checkbox) box.Add(box.checkbox)
box.Add(box.label) box.Add(box.label)
box.SetAttr(tomo.ALayout(layouts.Row { false, true })) box.SetAttr(tomo.ALayout(layouts.Row { false, true }))