Kendo UI ChatFileAction TagHelper ChatFileActionTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("file-action", ParentTag = "file-actions", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[SuppressTagRendering]
public class ChatFileActionTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseChatFileActionTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chat name="chat">
<file-actions>
<file-action icon="k-icon k-i-download" name="download" text="Download" />
</file-actions>
</kendo-chat>
Child Tags
Constructors
Creates a ChatFileActionTagHelper instance.
public ChatFileActionTagHelper()
Properties
Defines the icon class for the context menu action. The icon appears next to the action text in the context menu.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; }
Defines the name identifier for the context menu action. This is used internally to identify which action was triggered.
public string Name { 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 Chat File Action settings.