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.SetRole(tomo.R("objects", "Dropdown"))
|
||||||
dropdown.SetAttr(tomo.ALayout(layouts.Row { true, false }))
|
dropdown.SetAttr(tomo.ALayout(layouts.Row { true, false }))
|
||||||
dropdown.Add(dropdown.label)
|
dropdown.Add(dropdown.label)
|
||||||
// TODO: replace IconValueDecrement with a drop-down expand icon once
|
dropdown.Add(NewIcon(tomo.IconListChoose, tomo.IconSizeSmall))
|
||||||
// we get that
|
|
||||||
dropdown.Add(NewIcon(tomo.IconValueDecrement, tomo.IconSizeSmall))
|
|
||||||
|
|
||||||
dropdown.SetItems(items...)
|
dropdown.SetItems(items...)
|
||||||
if len(items) > 0 {
|
if len(items) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user