Change icon on dropdown

This commit is contained in:
Sasha Koshka 2024-08-16 18:01:08 -04:00
parent 16645eeeda
commit 31008c8494

View File

@ -30,9 +30,7 @@ func NewDropdown (items ...string) *Dropdown {
dropdown.SetRole(tomo.R("objects", "Dropdown"))
dropdown.SetAttr(tomo.ALayout(layouts.Row { true, false }))
dropdown.Add(dropdown.label)
// TODO: replace IconValueDecrement with a drop-down expand icon once
// we get that
dropdown.Add(NewIcon(tomo.IconValueDecrement, tomo.IconSizeSmall))
dropdown.Add(NewIcon(tomo.IconListChoose, tomo.IconSizeSmall))
dropdown.SetItems(items...)
if len(items) > 0 {