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
+203Lines changed: 203 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,70 @@ 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 component supports displaying a typing indicator to show when another user is composing a message. Set the `IsTypingField` parameter to specify which field in your data model indicates typing status, and set that field to `true` on a message to display the typing indicator instead of message content.
When a message has `IsTyping` set to `true`, the Chat 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.
78
+
15
79
## Context Menu Message Actions
16
80
17
81
Configure context menu actions that appear when users right-click on messages. These actions provide quick access to common message operations.
@@ -179,6 +243,145 @@ Control the width behavior of chat messages using the `MessageWidthMode` paramet
179
243
*`MessageWidthMode.Standard` - Messages take up a portion of the available space for better readability (default behavior)
180
244
*`MessageWidthMode.Full` - Messages span the full width of the chat container
181
245
246
+
## Author and Receiver Message Settings
247
+
248
+
The Chat component allows you to 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.
249
+
250
+
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.
Available settings for both `ChatAuthorMessageSettings` and `ChatReceiverMessageSettings`:
349
+
350
+
*`EnableMessageCollapse` - Enables the collapse functionality for long messages
351
+
*`MessageWidthMode` - Controls message width (`Standard` or `Full`)
352
+
*`ChatMessageContextMenuActions` - Define context menu actions for right-click interactions
353
+
*`ChatMessageToolbarActions` - Define toolbar actions that appear on hover or selection
354
+
*`ChatFileActions` - Define actions available for file attachments
355
+
356
+
If no author or receiver-specific setting is provided, the component falls back to the global Chat settings.
357
+
358
+
## Send Message Button Customization
359
+
360
+
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
+95Lines changed: 95 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,101 @@ 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 buttons
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.
62
+
63
+
## Suggested Actions Layout Mode
64
+
65
+
The `SuggestedActionsLayoutMode` parameter controls how suggested actions (quick actions attached to specific messages) are displayed. Similar to `SuggestionsLayoutMode`, it offers three layout options:
66
+
67
+
*`ChatSuggestedActionsLayoutMode.Wrap` - Suggested actions wrap to the next line (default)
68
+
*`ChatSuggestedActionsLayoutMode.Scroll` - Suggested actions are displayed in a single line with horizontal scrolling
69
+
*`ChatSuggestedActionsLayoutMode.ScrollButtons` - Suggested actions are displayed in a single line with horizontal scrolling and navigation buttons
public List<string> SuggestedActions { get; set; }
108
+
}
109
+
}
110
+
````
111
+
112
+
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