You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/chat/file-uploads-and-media.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,21 @@ Enable file uploads by setting the `EnableFileUpload` parameter to `true`:
21
21
</TelerikChat>
22
22
````
23
23
24
+
## Message Files Layout
25
+
26
+
The `MessageFilesLayoutMode` parameter controls how file attachments are displayed within chat messages. Choose from three layout options to best fit your application's design:
27
+
28
+
*`ChatMessageFilesLayoutMode.Vertical`—Files are displayed in a vertical stack (default)
29
+
*`ChatMessageFilesLayoutMode.Horizontal`—Files are displayed in a horizontal row
30
+
*`ChatMessageFilesLayoutMode.Wrap`—Files wrap to the next line when they exceed the message width
Copy file name to clipboardExpand all lines: components/chat/messages.md
+204Lines changed: 204 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,71 @@ position: 5
12
12
13
13
The Telerik UI for Blazor Chat component provides comprehensive control over message display, interactions, and styling to create rich conversational experiences.
14
14
15
+
## Typing Indicator
16
+
17
+
The Chat supports displaying a typing indicator to show when another user is composing a message. When a message has `IsTyping` set to `true`, the component will display an animated typing indicator (typically three dots) instead of the message content. This provides visual feedback that enhances the conversational experience, especially in real-time chat scenarios.
18
+
19
+
First, set the `IsTypingField` parameter to specify which field in your data model indicates typing status. Next, set that field to `true` on a message to display the typing indicator.
Configure context menu actions that appear when users right-click on messages. These actions provide quick access to common message operations.
@@ -179,6 +244,145 @@ Control the width behavior of chat messages using the `MessageWidthMode` paramet
179
244
*`MessageWidthMode.Standard` - Messages take up a portion of the available space for better readability (default behavior)
180
245
*`MessageWidthMode.Full` - Messages span the full width of the chat container
181
246
247
+
## Author and Receiver Message Settings
248
+
249
+
The Chat component lets you configure settings specifically for author messages (sent by the current user) and receiver messages (received from other users) using `ChatAuthorMessageSettings` and `ChatReceiverMessageSettings` components. These settings take precedence over global Chat settings, enabling different configurations for sent and received messages.
250
+
251
+
Use these settings to customize message behavior, appearance, and available actions based on whether the message was sent or received. For example, you might want different context menu actions, toolbar actions, or file actions for your own messages versus messages from others.
`ChatAuthorMessageSettings` and `ChatReceiverMessageSettings` provide the following settings:
350
+
351
+
*`EnableMessageCollapse`—Enables the collapse functionality for long messages
352
+
*`MessageWidthMode`—Controls message width (`Standard` or `Full`)
353
+
*`ChatMessageContextMenuActions`—Defines context menu actions for right-click interactions
354
+
*`ChatMessageToolbarActions`—Defines toolbar actions that appear on hover or selection
355
+
*`ChatFileActions`—Defines actions available for file attachments
356
+
357
+
If no author or receiver-specific setting is provided, the component falls back to the global Chat settings.
358
+
359
+
## Send Message Button Customization
360
+
361
+
Customize the appearance of the send message button using the `ChatSendMessageButtonSettings` component. The `Class` parameter allows you to apply custom CSS classes for styling.
Copy file name to clipboardExpand all lines: components/chat/quick-actions.md
+97Lines changed: 97 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,103 @@ The Telerik UI for Blazor Chat component supports quick actions and message sugg
16
16
17
17
Message suggestions provide users with quick reply options that appear below the message input area.
18
18
19
+
## Suggestions Layout Mode
20
+
21
+
The `SuggestionsLayoutMode` parameter controls how suggestions are displayed in the chat interface. Choose from three layout options to optimize the presentation based on the number and length of your suggestions:
22
+
23
+
*`ChatSuggestionsLayoutMode.Wrap`—Suggestions wrap to the next line if they exceed the container width (default)
24
+
*`ChatSuggestionsLayoutMode.Scroll`—Suggestions are displayed in a single line with horizontal scrolling
25
+
*`ChatSuggestionsLayoutMode.ScrollButtons`—Suggestions are displayed in a single line with horizontal scrolling and navigation
26
+
27
+
Use `Scroll` or `ScrollButtons` mode when you have many suggestions or longer text that won't fit comfortably in the available width. The `ScrollButtons` mode is particularly helpful for users who prefer button navigation over scrolling gestures.
The `SuggestedActionsLayoutMode` parameter controls how suggested actions (quick actions attached to specific messages) are displayed. Similar to `SuggestionsLayoutMode`, it offers three layout options:
67
+
68
+
*`ChatSuggestedActionsLayoutMode.Wrap`—Suggested actions wrap to the next line (default)
69
+
*`ChatSuggestedActionsLayoutMode.Scroll`—Suggested actions are displayed in a single line with horizontal scrolling
70
+
*`ChatSuggestedActionsLayoutMode.ScrollButtons`—Suggested actions are displayed in a single line with horizontal scrolling and navigation buttons
public List<string> SuggestedActions { get; set; }
110
+
}
111
+
}
112
+
````
113
+
114
+
Suggested actions are contextual quick replies that appear below specific messages, helping guide users through conversations or workflows. The layout mode ensures they are displayed effectively regardless of their number or length.
0 commit comments