haxeui/haxeui-core

View on GitHub
cli/templates/custom-component/assets/custom/custom.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8" ?>
<hbox>
    <textfield id="tf" text="0" />
    <button text="-" onclick="tf.text = '' + (Std.parseInt(tf.text) - 1)" repeater="true" />
    <button text="+" onclick="tf.text = '' + (Std.parseInt(tf.text) + 1)" repeater="true" />
</hbox>