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

Kendo UI messageBox TagHelper

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("message-box", ParentTag = "kendo-chat", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("end-affix-template", new string[] { "start-affix-template", "top-affix-template" })]
[SuppressTagRendering]
public class ChatMessageBoxSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseChatMessageBoxSettingsTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

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

Constructors

Initializes a new instance of the ChatMessageBoxSettingsTagHelper class.

C#
public ChatMessageBoxSettingsTagHelper()

Properties

Defines a custom template for the end affix area of the built-in message box. The end affix is positioned after the input field and alongside the built-in action area. This option applies when messageBoxTemplate is not set.The built-in speech-to-text and send buttons remain in the end affix. If the template omits matching ref-promptbox-speech-to-text-button or ref-promptbox-send-button elements, Chat backfills the enabled controls after the authored end-affix content inside the same end-affix container. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string EndAffixTemplateHandler { get; set; }

The maximum height of the textarea in pixels. When set, the textarea will stop expanding and show a scrollbar.

C#
public double? MaxTextAreaHeight { get; set; }

The input mode for the message box: "single": Single-line text input; "multi": Multi-line textarea with fixed rows or "auto": Auto-expanding textarea that grows as the user types.

C#
public string Mode { get; set; }

The initial number of visible rows for the built-in multiline input.

C#
public double? Rows { get; set; }

Defines a custom template for the start affix area of the built-in message box. The start affix is positioned before the input field. This option applies when messageBoxTemplate is not set.In the built-in PromptBox-backed Chat message box, the file attachment button belongs to the start affix. If the template does not include a matching ref-promptbox-file-select-button element, Chat backfills the enabled attachment button before the authored start-affix content inside the same start-affix container. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string StartAffixTemplateHandler { get; set; }

Configures the templates for the ChatMessageBoxSettingsTagHelper.

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

Implements: ITemplateComponent.Templates

Defines a custom template for the top affix area of the built-in message box. The top affix is rendered above the content area and is visible in multi-line mode only. This option applies when messageBoxTemplate is not set. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string TopAffixTemplateHandler { 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>