-
Notifications
You must be signed in to change notification settings - Fork 19
6q. Cell: Textarea
i_82 edited this page Mar 26, 2018
·
2 revisions
Textarea cell is a plain cell with disclosure indicator. It navigates user to a XUI pane with a UITextView called textareaView which allows multi-line text input.
| Key | Type | Description | Flags | Default |
|---|---|---|---|---|
| maxLength | Number | the max length of text that can be contained in textareaView
|
Optional | INT_MAX |
| keyboard | String | textareaView.keyboardType |
Optional | Default |
| autoCapitalization | String | textareaView.autoCapitalization |
Optional | None |
| autoCorrection | String | textareaView.autoCorrection |
Optional | No |
theme Key |
Type | Description |
|---|---|---|
| textColor | color | textareaView.textColor |
| caretColor | color | textareaView.tintColor |
| placeholderColor | color | textareaView.attributedPlaceholder.attributes(at: 0)[NSForegroundColorAttributeName] |
| keyboard | Description |
|---|---|
| Default | UIKeyboardTypeDefault |
| Alphabet | UIKeyboardTypeASCIICapable |
| ASCIICapable | UIKeyboardTypeASCIICapable |
| NumbersAndPunctuation | UIKeyboardTypeNumbersAndPunctuation |
| URL | UIKeyboardTypeURL |
| NumberPad | UIKeyboardTypeNumberPad |
| PhonePad | UIKeyboardTypePhonePad |
| NamePhonePad | UIKeyboardTypeNamePhonePad |
| EmailAddress | UIKeyboardTypeEmailAddress |
| DecimalPad | UIKeyboardTypeDecimalPad |
| autoCapitalization | Description |
|---|---|
| None | UITextAutocapitalizationTypeNone |
| Sentences | UITextAutocapitalizationTypeSentences |
| Words | UITextAutocapitalizationTypeWords |
| AllCharacters | UITextAutocapitalizationTypeAllCharacters |
| autoCorrection | Description |
|---|---|
| Default | UITextAutocorrectionTypeDefault |
| No | UITextAutocorrectionTypeNo |
| Yes | UITextAutocorrectionTypeYes |
value Type |
Description |
|---|---|
| String | textareaView.text |
{
"default": "You can enter any text here...",
"cell": "Textarea",
"key": "textarea",
"label": "Textarea Cell"
};