New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI actionButton TagHelper

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-chat name="chat">
    <action-button fill-mode="ButtonFillMode.Flat" />
</kendo-chat>

Constructors

Initializes a new instance of the ChatActionButtonSettingsTagHelper class.

C#
public ChatActionButtonSettingsTagHelper()

Properties

The fill mode for the button (e.g., "flat", "solid", "outline").

C#
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.

C#
[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.

C#
[HtmlAttributeName("loading-icon")]
public string LoadingIcon { get; set; }

The text label for the action button when in loading state.

C#
public string LoadingText { get; set; }

The border radius for the button (e.g., "small", "medium", "large", "full").

C#
public Rounded? Rounded { get; set; }

The size of the button (e.g., "small", "medium", "large").

C#
public ComponentSize? Size { get; set; }

The text label for the action button in its default (send) state.

C#
public string Text { get; set; }

The theme color for the button (e.g., "base", "primary", "secondary").

C#
public ThemeColor? ThemeColor { get; set; }

Methods

Adds the current instance to the parent TagHelper, if applicable.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>