Content:
- Examples
- Properties
- Methods

A TextField in mobile UI design is an input field where users can enter text or numeric data.

tfd = ui.addTextField( parent, text, options?, width?, height? ) → ui object: TextField

If you want a materialize date and time pickers, see DatePicker, TimePicker or DateTimePicker components.

Here are the methods available for the TextField Component.

Examples

Example - Textfield variants click to expand contents 

Example - Callbacks click to expand contents 

Example - Multiline textfield click to expand contents 

Example - Advance textfield click to expand contents 

Properties

The following properties are available on the TextField object:

absHeightNumber
absLeftNumber
absTopNumber
absWidthNumber
autoFocusBoolean
backColorString
backImageString
borderNumber
borderColorString
borderStyleString
colorString
cornerRadiusNumber
disabledBoolean
elObject
elStyleString
endAdornmentString
errorBoolean
fontFileString
heightNumber
helperTextString
hintString
inputTypeString
isVisibleBoolean
labelString
labelColorString
leftNumber
marginsList
maxRowsNumber
minRowsNumber
opacityNumber
optionsString
outlineColorString
paddingList
parentObject
placeholderString
positionObject
requiredBoolean
rotationNumber
sizeVariantString
startAdornmentString
stepIncrementNumber
textString
textColorString
textSizeNumber
topNumber
typeString
variantString
visibilityString
widthNumber

Methods

The following methods are available on the TextField object:

focus()
getEndAdornment() → String
getPosition( options ) → Object
getStartAdornment() → String
gone()
hide()
setScale( x, y )
show()