Skip to content

Commit e92b9ea

Browse files
committed
docs: add pr review suggestions #12450
1 parent e6b46e5 commit e92b9ea

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

components/chat/file-uploads-and-media.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Enable file uploads by setting the `EnableFileUpload` parameter to `true`:
2525

2626
The `MessageFilesLayoutMode` parameter controls how file attachments are displayed within chat messages. Choose from three layout options to best fit your application's design:
2727

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
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
3131

3232
````RAZOR.skip-repl
3333
<TelerikChat Data="@ChatData"

components/chat/messages.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ The Telerik UI for Blazor Chat component provides comprehensive control over mes
1414

1515
## Typing Indicator
1616

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.
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.
1820

1921
````Razor
2022
<TelerikButton OnClick="@AddTypingMessage">Show Typing Indicator</TelerikButton>
@@ -74,8 +76,6 @@ The Chat component supports displaying a typing indicator to show when another u
7476
}
7577
````
7678

77-
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-
7979
## Context Menu Message Actions
8080

8181
Configure context menu actions that appear when users right-click on messages. These actions provide quick access to common message operations.
@@ -245,7 +245,7 @@ Control the width behavior of chat messages using the `MessageWidthMode` paramet
245245

246246
## Author and Receiver Message Settings
247247

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.
248+
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.
249249

250250
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.
251251

@@ -345,13 +345,13 @@ Use these settings to customize message behavior, appearance, and available acti
345345
}
346346
````
347347

348-
Available settings for both `ChatAuthorMessageSettings` and `ChatReceiverMessageSettings`:
348+
`ChatAuthorMessageSettings` and `ChatReceiverMessageSettings` provide the following settings:
349349

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
350+
* `EnableMessageCollapse`&mdash;Enables the collapse functionality for long messages
351+
* `MessageWidthMode`&mdash;Controls message width (`Standard` or `Full`)
352+
* `ChatMessageContextMenuActions`&mdash;Defines context menu actions for right-click interactions
353+
* `ChatMessageToolbarActions`&mdash;Defines toolbar actions that appear on hover or selection
354+
* `ChatFileActions`&mdash;Defines actions available for file attachments
355355

356356
If no author or receiver-specific setting is provided, the component falls back to the global Chat settings.
357357

components/chat/quick-actions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ Message suggestions provide users with quick reply options that appear below the
2020

2121
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:
2222

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
23+
* `ChatSuggestionsLayoutMode.Wrap`&mdash;Suggestions wrap to the next line if they exceed the container width (default)
24+
* `ChatSuggestionsLayoutMode.Scroll`&mdash;Suggestions are displayed in a single line with horizontal scrolling
25+
* `ChatSuggestionsLayoutMode.ScrollButtons`&mdash;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.
2628

2729
````Razor
2830
<TelerikChat Data="@ChatData"
@@ -58,15 +60,13 @@ The `SuggestionsLayoutMode` parameter controls how suggestions are displayed in
5860
}
5961
````
6062

61-
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-
6363
## Suggested Actions Layout Mode
6464

6565
The `SuggestedActionsLayoutMode` parameter controls how suggested actions (quick actions attached to specific messages) are displayed. Similar to `SuggestionsLayoutMode`, it offers three layout options:
6666

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
67+
* `ChatSuggestedActionsLayoutMode.Wrap`&mdash;Suggested actions wrap to the next line (default)
68+
* `ChatSuggestedActionsLayoutMode.Scroll`&mdash;Suggested actions are displayed in a single line with horizontal scrolling
69+
* `ChatSuggestedActionsLayoutMode.ScrollButtons`&mdash;Suggested actions are displayed in a single line with horizontal scrolling and navigation buttons
7070

7171
````Razor
7272
<TelerikChat Data="@ChatData"

components/chat/templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This template allows you to customize the Chat header, where you can display tit
2929

3030
## NoDataTemplate
3131

32-
The `NoDataTemplate` allows you to define custom content displayed when the Chat has no messages. This is useful for showing welcome messages, instructions, or branding when the conversation is empty.
32+
The `NoDataTemplate` lets you to define custom content displayed when the Chat has no messages. This is useful for showing welcome messages, instructions, or branding when the conversation is empty.
3333

3434
````RAZOR.skip-repl
3535
<NoDataTemplate>
@@ -40,7 +40,7 @@ The `NoDataTemplate` allows you to define custom content displayed when the Chat
4040

4141
## MessageContentTemplate
4242

43-
Customize how individual message content is rendered within the Chat. This template has been renamed from `MessageTemplate` for better clarity.
43+
The `MessageContentTemplate` provides the option to customize how individual message content is rendered within the Chat.
4444

4545
````RAZOR.skip-repl
4646
<MessageContentTemplate>

0 commit comments

Comments
 (0)