Class LinkButtonProperties
public class LinkButtonProperties : ICustomizableButtonProperties, IButtonProperties
- Inheritance
-
LinkButtonProperties
- Implements
- Inherited Members
Constructors
LinkButtonProperties(string, EmojiProperties)
public LinkButtonProperties(string url, EmojiProperties emoji)
Parameters
url
stringUrl of the button.
emoji
EmojiPropertiesEmoji that appears on the button.
LinkButtonProperties(string, string)
public LinkButtonProperties(string url, string label)
Parameters
LinkButtonProperties(string, string, EmojiProperties)
public LinkButtonProperties(string url, string label, EmojiProperties emoji)
Parameters
url
stringUrl of the button.
label
stringText that appears on the button (max 80 characters).
emoji
EmojiPropertiesEmoji that appears on the button.
Properties
ComponentType
Type of the component.
[JsonPropertyName("type")]
public ComponentType ComponentType { get; }
Property Value
Disabled
Whether the button is disabled.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("disabled")]
public bool Disabled { get; set; }
Property Value
Emoji
Emoji that appears on the button.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("emoji")]
public EmojiProperties? Emoji { get; set; }
Property Value
Label
Text that appears on the button (max 80 characters).
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("label")]
public string? Label { get; set; }
Property Value
Style
Style of the button.
[JsonPropertyName("style")]
public ButtonStyle Style { get; }
Property Value
Url
Url of the button.
[JsonPropertyName("url")]
public string Url { get; set; }
Property Value
Methods
WithDisabled(bool)
public LinkButtonProperties WithDisabled(bool disabled = true)
Parameters
disabled
bool
Returns
WithEmoji(EmojiProperties?)
public LinkButtonProperties WithEmoji(EmojiProperties? emoji)
Parameters
emoji
EmojiProperties
Returns
WithLabel(string?)
public LinkButtonProperties WithLabel(string? label)
Parameters
label
string
Returns
WithUrl(string)
Url of the button.
public LinkButtonProperties WithUrl(string url)
Parameters
url
string