Only the textField updates when clicking on the button not the numField.


application numfields

import mobl::ui::generic

screen root() {
var number = 10
header(“numfields”)

group {
	item {
		numField(number)
		textField(number.toString())
	}
	item {
		button("test", onclick={
			number = number + 10;
		})
	}
}

}

Submitted by Terje Pedersen on 24 May 2011 at 15:09

Log in to post comments