class TextInputBuilder
implements
Equatable<JSONEncodable<APITextInputComponent> | APITextInputComponent>extends
ComponentBuilder<APITextInputComponent>export declare class TextInputBuilder extends ComponentBuilder<APITextInputComponent> implements Equatable<JSONEncodable<APITextInputComponent> | APITextInputComponent>
Constructors
data?: APITextInputComponent & {
type?: ComponentType.TextInput;
})
constructor(data?: APITextInputComponent & {
type?: ComponentType.TextInput;
}
Constructs a new instance of the TextInputBuilder
class
readonlyPartial<DataType> data :
The API data associated with this component
Inherited from: ComponentBuilder
equals) : boolean (
Whether or not this is equal to another structure
setCustomIdcustomId: string) : this (
customId: string
Sets the custom id for this text input
setLabellabel: string) : this (
label: string
Sets the label for this text input
setMaxLengthmaxLength: number) : this (
maxLength: number
Sets the maximum length of text for this text input
setMinLengthminLength: number) : this (
minLength: number
Sets the minimum length of text for this text input
setPlaceholderplaceholder: string) : this (
placeholder: string
Sets the placeholder of this text input
setRequiredrequired?: boolean) : this (
required?: boolean
Sets whether this text input is required
setStylestyle: TextInputStyle) : this (
style: TextInputStyle
Sets the style for this text input
setValuevalue: string) : this (
value: string
Sets the value of this text input
toJSONAPITextInputComponent () :
Serializes this component to an API-compatible JSON object