Skip to content

6d. Cell: TextField

i_82 edited this page Mar 26, 2018 · 3 revisions

TextField cell is a plain cell with a UITextField called cellTextField inside.

Key Type Description Flags Default
alignment String cellTextField.textAlignment Optional Natural
keyboard String cellTextField.keyboardType Optional Default
placeholder String cellTextField.placeholder Optional ""
isSecure Boolean cellTextField.isSecure Optional false

icon is not supported.

theme Key Type Description
textColor color cellTextField.textColor
caretColor color cellTextField.tintColor
placeholderColor color cellTextField.attributedPlaceholder.attributes(at: 0)[NSForegroundColorAttributeName]
alignment Description
Left NSTextAlignmentLeft
Center NSTextAlignmentCenter
Right NSTextAlignmentRight
Natural NSTextAlignmentNatural
Justified NSTextAlignmentJustified
keyboard Description
Default UIKeyboardTypeDefault
Alphabet UIKeyboardTypeASCIICapable
ASCIICapable UIKeyboardTypeASCIICapable
NumbersAndPunctuation UIKeyboardTypeNumbersAndPunctuation
URL UIKeyboardTypeURL
NumberPad UIKeyboardTypeNumberPad
PhonePad UIKeyboardTypePhonePad
NamePhonePad UIKeyboardTypeNamePhonePad
EmailAddress UIKeyboardTypeEmailAddress
DecimalPad UIKeyboardTypeDecimalPad
value Type Description
String cellTextField.text

Example

{
    "items": [
        {
            "cell": "TextField",
            "key": "username",
            "keyboard": "Alphabet",
            "placeholder": "Enter the username"
        },
        {
            "isSecure": true,
            "cell": "TextField",
            "key": "password",
            "keyboard": "Alphabet",
            "placeholder": "Enter the password"
        }
    ]
}

Clone this wiki locally