Defines the fluent API for configuring the ChatMessageSettings settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ChatMessageSettingsBuilder
Inheritance: objectChatMessageSettingsBuilder
Inherited Members
Constructors
Initialize the ChatMessageSettingsBuilder
public ChatMessageSettingsBuilder(ChatMessageSettings settings)
Methods
Whether long receiver messages can be collapsed.
public ChatMessageSettingsBuilder AllowMessageCollapse(bool value)
The value that configures the allowmessagecollapse.
Returns:Whether context menu actions are enabled for receiver messages.
public ChatMessageSettingsBuilder EnableContextMenuActions(bool value)
The value that configures the enablecontextmenuactions.
Returns:Whether file actions are enabled for receiver messages.
public ChatMessageSettingsBuilder EnableFileActions(bool value)
The value that configures the enablefileactions.
Returns:Defines the collection of context menu actions rendered for receiver messages.
public ChatMessageSettingsBuilder MessageActions(Action<ChatMessageSettingsMessageActionFactory> configurator)
The action that configures the messageactions.
Returns:A content template override for receiver messages. Receives the current message object.
public ChatMessageSettingsBuilder MessageContentTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the messagecontenttemplate.
Returns:A content template override for receiver messages. Receives the current message object.
public ChatMessageSettingsBuilder MessageContentTemplateHandler(string value)
The value that configures the messagecontenttemplate.
Returns:The template used to render receiver messages. Receives the same arguments as messageTemplate.
public ChatMessageSettingsBuilder MessageTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the messagetemplate.
Returns:The template used to render receiver messages. Receives the same arguments as messageTemplate.
public ChatMessageSettingsBuilder MessageTemplateHandler(string value)
The value that configures the messagetemplate.
Returns:Defines the collection of toolbar actions rendered for receiver messages.
public ChatMessageSettingsBuilder MessageToolbarActions(Action<ChatMessageSettingsMessageToolbarActionFactory> configurator)
The action that configures the messagetoolbaractions.
Returns:The width mode to apply to receiver messages. Supported values are "standard" and "full".
public ChatMessageSettingsBuilder MessageWidthMode(ChatMessageWidth value)
The value that configures the messagewidthmode.
Returns:Whether to show the avatar for receiver messages.
public ChatMessageSettingsBuilder ShowAvatar(bool value)
The value that configures the showavatar.
Returns:Whether to show the username for receiver messages.
public ChatMessageSettingsBuilder ShowUsername(bool value)
The value that configures the showusername.
Returns: