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

Kendo UI ChatMessageSettings TagHelper

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

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

Inherited Members 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()...

Constructors

Initializes a new instance of the ChatMessageSettingsTagHelper class.

C#
public ChatMessageSettingsTagHelper()

Properties

Whether long author messages can be collapsed.

C#
public bool? AllowMessageCollapse { get; set; }

Whether context menu actions are enabled for author messages.

C#
public bool? EnableContextMenuActions { get; set; }

Whether file actions are enabled for author messages.

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

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

C#
public string MessageTemplateHandler { get; set; }

The width mode to apply to author messages. Supported values are "standard" and "full".

C#
public ChatMessageWidth? MessageWidthMode { get; set; }

Whether to show the avatar for author messages.

C#
public bool? ShowAvatar { get; set; }

Whether to show the username for author messages.

C#
public bool? ShowUsername { get; set; }

Configures the templates for the ChatMessageSettingsTagHelper.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

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 void Init(TagHelperContext context)
Parameters:contextTagHelperContext

Overrides: TagHelperChildBase.Init(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>