Class TextInputProperties
public class TextInputProperties : IInteractiveComponentProperties, ILabelComponentProperties, IComponentProperties, IJsonSerializable<ILabelComponentProperties>
- Inheritance
-
TextInputProperties
- Implements
- Inherited Members
Constructors
TextInputProperties(string, TextInputStyle)
public TextInputProperties(string customId, TextInputStyle style)
Parameters
customIdstringstyleTextInputStyle
Properties
ComponentType
Type of the component.
[JsonPropertyName("type")]
public ComponentType ComponentType { get; }
Property Value
CustomId
Developer-defined identifier for the component (max 100 characters).
[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)
Developer-defined identifier for the component (max 100 characters).
public TextInputProperties WithCustomId(string customId)
Parameters
customIdstring
Returns
WithId(int?)
Unique identifier for the component. Auto populated through increment if not provided.
public TextInputProperties WithId(int? id)
Parameters
idint?
Returns
WithMaxLength(int?)
public TextInputProperties WithMaxLength(int? maxLength)
Parameters
maxLengthint?
Returns
WithMinLength(int?)
public TextInputProperties WithMinLength(int? minLength)
Parameters
minLengthint?
Returns
WithPlaceholder(string?)
public TextInputProperties WithPlaceholder(string? placeholder)
Parameters
placeholderstring
Returns
WithRequired(bool?)
public TextInputProperties WithRequired(bool? required = true)
Parameters
requiredbool?
Returns
WithStyle(TextInputStyle)
public TextInputProperties WithStyle(TextInputStyle style)
Parameters
styleTextInputStyle
Returns
WithValue(string?)
public TextInputProperties WithValue(string? value)
Parameters
valuestring