Class
ChatReceiverMessageSettings

Definition

Constructors

ChatReceiverMessageSettings()

Declaration

cs-api-definition
public ChatReceiverMessageSettings()

Properties

ChatFileActions

Defines a render fragment that contains actions for the attachments. Children: ChatFileAction.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChatFileActions { get; set; }

Property Value

RenderFragment

ChatMessageContextMenuActions

Defines a render fragment that contains message actions. Children: ChatMessageContextMenuAction.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChatMessageContextMenuActions { get; set; }

Property Value

RenderFragment

ChatMessageToolbarActions

Defines a render fragment that contains actions for the attachments. Children: ChatMessageToolbarAction.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChatMessageToolbarActions { get; set; }

Property Value

RenderFragment

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

cs-api-definition
[Parameter]
public bool? EnableMessageCollapse { get; set; }

Property Value

bool?

MessageWidthMode

Defines the width mode of the messages in the chat. The available options are:

  1. Standard - Messages will have a width that fits their content.
  2. 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

cs-api-definition
[Parameter]
public MessageWidthMode? MessageWidthMode { get; set; }

Property Value

MessageWidthMode?

Methods

AddFileAction(IChatFileAction)

Adds an attachment action to the chat.

Declaration

cs-api-definition
public void AddFileAction(IChatFileAction action)

Parameters

action

IChatFileAction

The attachment action to add.

AddMessageAction(ChatMessageContextMenuAction)

Adds a message action to the chat.

Declaration

cs-api-definition
public void AddMessageAction(ChatMessageContextMenuAction action)

Parameters

action

ChatMessageContextMenuAction

The action to add.

AddMessageToolbarAction(ChatMessageToolbarAction)

Adds toolbar action to the chat.

Declaration

cs-api-definition
public void AddMessageToolbarAction(ChatMessageToolbarAction action)

Parameters

action

ChatMessageToolbarAction

The attachment action to add.

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose()

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides ComponentBase.OnInitialized()

RemoveFileAction(IChatFileAction)

Removes an attachment action from the chat.

Declaration

cs-api-definition
public void RemoveFileAction(IChatFileAction action)

Parameters

action

IChatFileAction

The attachment action to remove.

RemoveMessageAction(ChatMessageContextMenuAction)

Removes a message action from the chat.

Declaration

cs-api-definition
public void RemoveMessageAction(ChatMessageContextMenuAction action)

Parameters

action

ChatMessageContextMenuAction

The action to remove.

RemoveMessageToolbarAction(ChatMessageToolbarAction)

Removes toolbar action from the chat.

Declaration

cs-api-definition
public void RemoveMessageToolbarAction(ChatMessageToolbarAction action)

Parameters

action

ChatMessageToolbarAction

The attachment action to remove.