No summary provided.
Implements
Equatable<APITextInputComponent | JSONEncodable<APITextInputComponent>>Creates a new text input from API data
Example
Creating a select menu option from an API data objectExample
Creating a select menu option using setters and API dataName | Type | Optional | Description |
---|---|---|---|
data | APITextInputComponent & { type?: ComponentType.TextInput; } | Yes | The API data to create this text input with |
The API data associated with this component
Inherited from ComponentBuilderName | Type | Optional | Description |
---|---|---|---|
other | APITextInputComponent | JSONEncodable<APITextInputComponent> | No | None |
Sets the custom id for this text input
Name | Type | Optional | Description |
---|---|---|---|
customId | string | No | The custom id of this text input |
Sets the label for this text input
Name | Type | Optional | Description |
---|---|---|---|
label | string | No | The label for this text input |
Sets the maximum length of text for this text input
Name | Type | Optional | Description |
---|---|---|---|
maxLength | number | No | The maximum length of text for this text input |
Sets the minimum length of text for this text input
Name | Type | Optional | Description |
---|---|---|---|
minLength | number | No | The minimum length of text for this text input |
Sets the placeholder of this text input
Name | Type | Optional | Description |
---|---|---|---|
placeholder | string | No | The placeholder of this text input |
Sets whether this text input is required
Name | Type | Optional | Description |
---|---|---|---|
required | boolean | Yes | Whether this text input is required |
Sets the style for this text input
Name | Type | Optional | Description |
---|---|---|---|
style | TextInputStyle | No | The style for this text input |
Sets the value of this text input
Name | Type | Optional | Description |
---|---|---|---|
value | string | No | The value for this text input |
Serializes this component to an API-compatible JSON object