bright-gpu-74537
05/13/2022, 11:24 AMhttps://community.haxeui.org/uploads/default/original/1X/7adf392931f005fac488f9b457ad0392e3836221.gif▾
ambitious-knife-25690
05/13/2022, 11:28 AMbright-gpu-74537
05/13/2022, 11:30 AMambitious-knife-25690
05/13/2022, 11:32 AMambitious-knife-25690
05/13/2022, 11:55 AMbright-gpu-74537
05/13/2022, 11:56 AMambitious-knife-25690
05/13/2022, 11:56 AMxml
<section-header text="Theme Test" />
<hbox>
<dropdown text="Select Theme" id="theme">
<data>
<item text="Light" value="0"/>
<item text="Dark" value="1" />
</data>
</dropdown>
</hbox>bright-gpu-74537
05/13/2022, 11:56 AMambitious-knife-25690
05/13/2022, 11:56 AMbright-gpu-74537
05/13/2022, 11:57 AMbright-gpu-74537
05/13/2022, 11:57 AMbright-gpu-74537
05/13/2022, 11:58 AMbest-needle-18998
05/13/2022, 12:01 PMbright-gpu-74537
05/13/2022, 12:02 PMbright-gpu-74537
05/13/2022, 12:03 PMbright-gpu-74537
05/13/2022, 12:06 PMbright-gpu-74537
05/13/2022, 12:18 PMbright-gpu-74537
05/13/2022, 12:19 PMbright-gpu-74537
05/13/2022, 12:22 PMambitious-knife-25690
05/13/2022, 12:58 PMambitious-knife-25690
05/13/2022, 1:00 PMevent.value to return 1ambitious-knife-25690
05/13/2022, 1:00 PMambitious-knife-25690
05/13/2022, 1:08 PMselectedItem has value because it holds the active state which I think most people would probably have in their code base anywaybright-gpu-74537
05/13/2022, 1:55 PMbright-gpu-74537
05/13/2022, 1:56 PMxml
<dropdown text="Select Theme" id="theme">
<data>
<item text="Light" value="0" something="bob" foo="bar"/>
</data>
</dropdown>bright-gpu-74537
05/13/2022, 2:01 PMxml
<dropdown text="Select Theme" id="theme" onchange="haxe.ui.Toolkit.theme = this.selectedItem.themeName">
<data>
<item text="Light" themeName="default"/>
<item text="Dark" themeName="dark"/>
</data>
</dropdown>ambitious-knife-25690
05/13/2022, 3:00 PMvalue property rather than the component data object, it's fine, but not "expected" and was making sureambitious-knife-25690
05/13/2022, 3:02 PMambitious-knife-25690
05/13/2022, 3:02 PMambitious-knife-25690
05/13/2022, 3:03 PM