Annotation Interface TextInput
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe default value of this TextInput.The label shown above this text input boxint
The maximum length.int
The minimum length.boolean
Whether this TextInput is required.TheTextInputStyle
.
-
Element Details
-
value
String valueThe placeholder of this TextInput
This is the short hint that describes the expected value of the TextInput field.
- Returns:
- Placeholder
-
label
-
defaultValue
String defaultValueThe default value of this TextInput.
This sets a pre-populated text for this TextInput field
- Returns:
- default value
- Default:
""
-
minValue
int minValueThe minimum length. This is -1 if none has been set.- Returns:
- Minimum length or -1
- Default:
-1
-
maxValue
int maxValueThe maximum length. This is -1 if none has been set.- Returns:
- Maximum length or -1
- Default:
-1
-
style
TextInputStyle styleTheTextInputStyle
. The default value isTextInputStyle.PARAGRAPH
.- Returns:
- The TextInputStyle
- Default:
PARAGRAPH
-
required
boolean requiredWhether this TextInput is required.
If this is True, the user must populate this TextInput field before they can submit the Modal.
- Returns:
- True if this TextInput is required
- See Also:
- Default:
true
-