[Control] telField
Part of: mobl::ui::generic
Arguments:
s : Stringvariable/property to bind the phone number to.placeholder : String = nullplaceholder text (appears when text field is empty, optional)label : String = nulllabel text (optional)validator : Function1<String,String> = alwaysOkValidatorvalidator function, takessas argument and returns error message or empty string if OK (optional)style : Style = textFieldStylethe style to use for the text fieldinvalidStyle : Style = textFieldInvalidStylethe style to use for the text field on invalid inputautofocus : Bool = falsewhether the control should get immediately get focus when loaded.onchange : Callback = nullevent triggered when the text field changed and loses focus (optional).onkeyup : Callback = nullevent triggered on every keypress (optional).
A telephone field control.
Support:
- iOS5+
- Android 2.3+
- Appears as simple text input on older versions
Example:
var tel = "+31"
group {
item { telField(tel, label="Phone") }
}
mobl/ui/generic/telfield.txt · Last modified: 2013/10/01 02:29 (external edit)
