ClassChatAuthorMessageSettings
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChatAuthorMessageSettings : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseChatAuthorMessageSettings
Implements:
Inherited Members
Constructors
ChatAuthorMessageSettings()
Declaration
public ChatAuthorMessageSettings()
Properties
ChatFileActions
Defines a render fragment that contains actions for the attachments. Children: ChatFileAction.
Declaration
[Parameter]
public RenderFragment ChatFileActions { get; set; }
Property Value
ChatMessageContextMenuActions
Defines a render fragment that contains message actions. Children: ChatMessageContextMenuAction.
Declaration
[Parameter]
public RenderFragment ChatMessageContextMenuActions { get; set; }
Property Value
ChatMessageToolbarActions
Defines a render fragment that contains actions for the message toolbar. Children: ChatMessageToolbarAction.
Declaration
[Parameter]
public RenderFragment ChatMessageToolbarActions { get; set; }
Property Value
EnableMessageCollapse
Enables the collapse functionality for author messages in the chat component. If no value is provided, the global setting from TelerikChat.EnableMessageCollapse will be used.
Declaration
[Parameter]
public bool? EnableMessageCollapse { get; set; }
Property Value
bool?
MessageWidthMode
Defines the width mode of the messages in the chat. The available options are:
- Standard - Messages will have a width that fits their content.
- Full - Messages will take the full width of the chat container.
If no value is provided, the global setting from TelerikChat.MessageWidthMode will be used.
Declaration
[Parameter]
public MessageWidthMode? MessageWidthMode { get; set; }
Property Value
Methods
AddFileAction(IChatFileAction)
Adds an attachment action to the chat.
Declaration
public void AddFileAction(IChatFileAction action)
Parameters
action
IChatFileAction
The attachment action to add.
AddMessageAction(ChatMessageContextMenuAction)
Adds a message action to the chat.
Declaration
public void AddMessageAction(ChatMessageContextMenuAction action)
Parameters
action
The action to add.
AddMessageToolbarAction(ChatMessageToolbarAction)
Adds toolbar action to the chat.
Declaration
public void AddMessageToolbarAction(ChatMessageToolbarAction action)
Parameters
action
The attachment action to add.
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public void Dispose()
Implements
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
RemoveFileAction(IChatFileAction)
Removes an attachment action from the chat.
Declaration
public void RemoveFileAction(IChatFileAction action)
Parameters
action
IChatFileAction
The attachment action to remove.
RemoveMessageAction(ChatMessageContextMenuAction)
Removes a message action from the chat.
Declaration
public void RemoveMessageAction(ChatMessageContextMenuAction action)
Parameters
action
The action to remove.
RemoveMessageToolbarAction(ChatMessageToolbarAction)
Removes toolbar action from the chat.
Declaration
public void RemoveMessageToolbarAction(ChatMessageToolbarAction action)
Parameters
action
The attachment action to remove.