Kendo UI ChatMessageSettings TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("author-message-settings", ParentTag = "kendo-chat", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("receiver-message-settings", ParentTag = "kendo-chat", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("message-template", new string[] { "message-content-template", "message-toolbar-actions", "message-actions" })]
[SuppressTagRendering]
public class ChatMessageSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseChatMessageSettingsTagHelper
Implements:
Inherited Members
Child Tags
Constructors
Initializes a new instance of the ChatMessageSettingsTagHelper class.
public ChatMessageSettingsTagHelper()
Properties
Whether long author messages can be collapsed.
public bool? AllowMessageCollapse { get; set; }
Whether context menu actions are enabled for author messages.
public bool? EnableContextMenuActions { get; set; }
Whether file actions are enabled for author messages.
public bool? EnableFileActions { get; set; }
A content template override for author messages. Receives the current message object. This option expects the name of a JavaScript function that will be called to return the template.
public string MessageContentTemplateHandler { get; set; }
The template used to render author messages. Receives the same arguments as messageTemplate. This option expects the name of a JavaScript function that will be called to return the template.
public string MessageTemplateHandler { get; set; }
The width mode to apply to author messages. Supported values are "standard" and "full".
public ChatMessageWidth? MessageWidthMode { get; set; }
Whether to show the avatar for author messages.
public bool? ShowAvatar { get; set; }
Whether to show the username for author messages.
public bool? ShowUsername { get; set; }
Configures the templates for the ChatMessageSettingsTagHelper.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
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.