Defines the fluent API for configuring the ChatMessageBoxSettings settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ChatMessageBoxSettingsBuilder
Inheritance: objectChatMessageBoxSettingsBuilder
Inherited Members
Constructors
Initialize the ChatMessageBoxSettingsBuilder
public ChatMessageBoxSettingsBuilder(ChatMessageBoxSettings settings)
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.
public ChatMessageBoxSettingsBuilder EndAffixTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the endaffixtemplate.
Returns: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.
public ChatMessageBoxSettingsBuilder EndAffixTemplateHandler(string value)
The value that configures the endaffixtemplate.
Returns:The maximum height of the textarea in pixels. When set, the textarea will stop expanding and show a scrollbar.
public ChatMessageBoxSettingsBuilder MaxTextAreaHeight(double value)
The value that configures the maxtextareaheight.
Returns: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.
public ChatMessageBoxSettingsBuilder Mode(string value)
The value that configures the mode.
Returns:The initial number of visible rows when mode is "multi".
public ChatMessageBoxSettingsBuilder Rows(double value)
The value that configures the rows.
Returns: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.
public ChatMessageBoxSettingsBuilder StartAffixTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the startaffixtemplate.
Returns: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.
public ChatMessageBoxSettingsBuilder StartAffixTemplateHandler(string value)
The value that configures the startaffixtemplate.
Returns: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.
public ChatMessageBoxSettingsBuilder TopAffixTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the topaffixtemplate.
Returns: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.
public ChatMessageBoxSettingsBuilder TopAffixTemplateHandler(string value)
The value that configures the topaffixtemplate.
Returns: