Hello,
Is it possible to remove the text from textfield if it isn't correct by using a validator function at the widget like this one:
Tesfield DojoTextField{text = test, layoutData = new GridLayoutData{row = 4, column = 2}, constraints = new Dictionary{dataType = "digit"}, validators =[Validator
], onChange ::= label_onChange}
?
It is correct if we set somewhere Tesfield.text ="" in the function label_onChange but what if the declaration of TestField widget is inside a function and so function label_onChange cannot see Tesfield DojoTextField?
Thanks in advance!
michaeldefox