Change icon on dropdown
This commit is contained in:
parent
16645eeeda
commit
611705fa0d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user