haxeui / haxeui-core

The core library of the HaxeUI framework
http://haxeui.org
MIT License
340 stars 70 forks source link

selected property for toggle property #583

Open Shallowmallow opened 6 months ago

Shallowmallow commented 6 months ago

Was going to add the property "action" and "toggle" to the ComponentExplorer. Then I noticed that there is no way to change the the actual toggle to "true" via xml <property id="toggleProp" label="Toggle Property" type="toggle" value="Toggle me" /> So I added a selected property <property id="toggleProp" label="Toggle Property" type="toggle" value="Toggle me" selected="true" /> I also added to the checkbox in case someone used it instead of value.