Kendo UI actionButton TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("action-button", ParentTag = "kendo-chat", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("chat-action-button-icon", new string[] { "chat-action-button-loading-icon" })]
[SuppressTagRendering]
public class ChatActionButtonSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChatActionButtonSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chat name="chat">
<action-button fill-mode="ButtonFillMode.Flat" />
</kendo-chat>
Child Tags
Constructors
Initializes a new instance of the ChatActionButtonSettingsTagHelper class.
public ChatActionButtonSettingsTagHelper()
Properties
The fill mode for the button (e.g., "flat", "solid", "outline").
public ButtonFillMode? FillMode { get; set; }
The icon name for the action button in its default (send) state.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("icon")]
public string Icon { get; set; }
The icon name for the action button when in loading state.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("loading-icon")]
public string LoadingIcon { get; set; }
The text label for the action button when in loading state.
public string LoadingText { get; set; }
The border radius for the button (e.g., "small", "medium", "large", "full").
public Rounded? Rounded { get; set; }
The size of the button (e.g., "small", "medium", "large").
public ComponentSize? Size { get; set; }
The text label for the action button in its default (send) state.
public string Text { get; set; }
The theme color for the button (e.g., "base", "primary", "secondary").
public ThemeColor? ThemeColor { get; set; }
Methods
Adds the current instance to the parent TagHelper, if applicable.
protected override void AddSelfToParent(TagHelperContext context)
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.