Class TextInputProperties
public class TextInputProperties : ILabelComponentProperties, IComponentProperties, IJsonSerializable<ILabelComponentProperties>
- Inheritance
-
TextInputProperties
- Implements
- Inherited Members
Constructors
TextInputProperties(string, TextInputStyle)
public TextInputProperties(string customId, TextInputStyle style)
Parameters
customId
stringstyle
TextInputStyle
Properties
ComponentType
Type of the component.
[JsonPropertyName("type")]
public ComponentType ComponentType { get; }
Property Value
CustomId
[JsonPropertyName("custom_id")]
public string CustomId { get; set; }
Property Value
Id
Unique identifier for the component. Auto populated through increment if not provided.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("id")]
public int? Id { get; set; }
Property Value
- int?
MaxLength
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("max_length")]
public int? MaxLength { get; set; }
Property Value
- int?
MinLength
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("min_length")]
public int? MinLength { get; set; }
Property Value
- int?
Placeholder
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("placeholder")]
public string? Placeholder { get; set; }
Property Value
Required
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("required")]
public bool? Required { get; set; }
Property Value
- bool?
Style
[JsonPropertyName("style")]
public TextInputStyle Style { get; set; }
Property Value
Value
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("value")]
public string? Value { get; set; }
Property Value
Methods
WithCustomId(string)
public TextInputProperties WithCustomId(string customId)
Parameters
customId
string
Returns
WithId(int?)
Unique identifier for the component. Auto populated through increment if not provided.
public TextInputProperties WithId(int? id)
Parameters
id
int?
Returns
WithMaxLength(int?)
public TextInputProperties WithMaxLength(int? maxLength)
Parameters
maxLength
int?
Returns
WithMinLength(int?)
public TextInputProperties WithMinLength(int? minLength)
Parameters
minLength
int?
Returns
WithPlaceholder(string?)
public TextInputProperties WithPlaceholder(string? placeholder)
Parameters
placeholder
string
Returns
WithRequired(bool?)
public TextInputProperties WithRequired(bool? required = true)
Parameters
required
bool?
Returns
WithStyle(TextInputStyle)
public TextInputProperties WithStyle(TextInputStyle style)
Parameters
style
TextInputStyle
Returns
WithValue(string?)
public TextInputProperties WithValue(string? value)
Parameters
value
string