Class CheckboxProperties
public class CheckboxProperties : IInteractiveComponentProperties, ILabelComponentProperties, IComponentProperties, IJsonSerializable<ILabelComponentProperties>
- Inheritance
-
CheckboxProperties
- Implements
- Inherited Members
Constructors
CheckboxProperties(string)
public CheckboxProperties(string customId)
Parameters
customIdstring
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
Default
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("default")]
public bool Default { get; set; }
Property Value
Id
Unique identifier for the component. Auto populated through increment if not provided.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("id")]
public int? Id { get; set; }
Property Value
- int?
Methods
WithCustomId(string)
Developer-defined identifier for the component (max 100 characters).
public CheckboxProperties WithCustomId(string customId)
Parameters
customIdstring
Returns
WithDefault(bool)
public CheckboxProperties WithDefault(bool @default = true)
Parameters
defaultbool
Returns
WithId(int?)
Unique identifier for the component. Auto populated through increment if not provided.
public CheckboxProperties WithId(int? id)
Parameters
idint?