Kendo UI ChatMessageAction TagHelper ChatMessageActionTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
C#
[HtmlTargetElement("message-action", ParentTag = "message-actions", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[SuppressTagRendering]
public class ChatMessageActionTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseChatMessageActionTagHelper
Implements:
Inherited Members
Example:
csharp
@addTagHelper *, Kendo.Mvc
<kendo-chat name="chat">
<message-actions>
<message-action icon="undo" name="reply" text="Reply" />
</message-actions>
</kendo-chat>
Child Tags
Constructors
Creates a ChatMessageActionTagHelper instance.
C#
public ChatMessageActionTagHelper()
Properties
Defines the icon class for the context menu action.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; }
Defines the name identifier for the context menu action.
C#
public string Name { get; set; }
Methods
Adds the current instance to the parent TagHelper, if applicable.
C#
protected override void AddSelfToParent(TagHelperContext context)
Overrides:
C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the ChatMessageAction settings.