TextInputElement class is used to create a text input element in a user interface.
Parameter
Usage
How to create an instance of theTextInputElement class:
- Swift
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
TextInputElement class is used to create a text input element in a user interface.
| Name | Type | Description |
|---|---|---|
| elementId | string | Used to set unique Id for the element |
| label | string | Used to set a label for the element |
| defaultValue | String | Used to set the default value for the element |
| optional | bool | Used to set an optional flag for the element |
| placeholder | TextInputPlaceholder | Used to set placeholder for the element |
| maxLines | int | Used to set max lines for the element |
TextInputElement class:
let textInputElement = TextInputElement()
textInputElement.elementId = "name"
textInputElement.label = "Enter name "
textInputElement.optional = false
Was this page helpful?