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

Defines the fluent API for configuring ChatMessageBoxSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChatMessageBoxSettingsBuilder

Inheritance: objectChatMessageBoxSettingsBuilder

Inherited Members object.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 ChatMessageBoxSettingsBuilder class.

C#
public ChatMessageBoxSettingsBuilder(ChatMessageBoxSettings container)
Parameters:containerChatMessageBoxSettings

Properties

C#
protected ChatMessageBoxSettings Container { get; }

Methods

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.

C#
public ChatMessageBoxSettingsBuilder EndAffixTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the endaffixtemplate.

Returns:

ChatMessageBoxSettingsBuilder

Returns the current ChatMessageBoxSettingsBuilder instance.

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.

C#
public ChatMessageBoxSettingsBuilder EndAffixTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for EndAffixTemplate

Returns:

ChatMessageBoxSettingsBuilder

Returns the current ChatMessageBoxSettingsBuilder instance.

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

C#
public ChatMessageBoxSettingsBuilder MaxTextAreaHeight(double value)
Parameters:valuedouble

The value for MaxTextAreaHeight

Returns:

ChatMessageBoxSettingsBuilder

Returns the current ChatMessageBoxSettingsBuilder instance.

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 ChatMessageBoxSettingsBuilder Mode(string value)
Parameters:valuestring

The value for Mode

Returns:

ChatMessageBoxSettingsBuilder

Returns the current ChatMessageBoxSettingsBuilder instance.

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

C#
public ChatMessageBoxSettingsBuilder Rows(double value)
Parameters:valuedouble

The value for Rows

Returns:

ChatMessageBoxSettingsBuilder

Returns the current ChatMessageBoxSettingsBuilder instance.

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.

C#
public ChatMessageBoxSettingsBuilder StartAffixTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the startaffixtemplate.

Returns:

ChatMessageBoxSettingsBuilder

Returns the current ChatMessageBoxSettingsBuilder instance.

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.

C#
public ChatMessageBoxSettingsBuilder StartAffixTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for StartAffixTemplate

Returns:

ChatMessageBoxSettingsBuilder

Returns the current ChatMessageBoxSettingsBuilder instance.

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.

C#
public ChatMessageBoxSettingsBuilder TopAffixTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the topaffixtemplate.

Returns:

ChatMessageBoxSettingsBuilder

Returns the current ChatMessageBoxSettingsBuilder instance.

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.

C#
public ChatMessageBoxSettingsBuilder TopAffixTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for TopAffixTemplate

Returns:

ChatMessageBoxSettingsBuilder

Returns the current ChatMessageBoxSettingsBuilder instance.