Class LabelProperties
public class LabelProperties : IModalComponentProperties, IComponentProperties, IJsonSerializable<IModalComponentProperties>
- Inheritance
-
LabelProperties
- Implements
- Inherited Members
Constructors
LabelProperties(string, ILabelComponentProperties)
public LabelProperties(string label, ILabelComponentProperties component)
Parameters
labelstringcomponentILabelComponentProperties
Properties
Component
[JsonPropertyName("component")]
public ILabelComponentProperties Component { get; set; }
Property Value
ComponentType
Type of the component.
[JsonPropertyName("type")]
public ComponentType ComponentType { get; }
Property Value
Description
[JsonPropertyName("description")]
public string? Description { 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?
Label
[JsonPropertyName("label")]
public string Label { get; set; }
Property Value
Methods
WithComponent(ILabelComponentProperties)
public LabelProperties WithComponent(ILabelComponentProperties component)
Parameters
componentILabelComponentProperties
Returns
WithDescription(string?)
public LabelProperties WithDescription(string? description)
Parameters
descriptionstring
Returns
WithId(int?)
Unique identifier for the component. Auto populated through increment if not provided.
public LabelProperties WithId(int? id)
Parameters
idint?
Returns
WithLabel(string)
public LabelProperties WithLabel(string label)
Parameters
labelstring