Skip to content

Commit e781154

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

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

components/chat/messages.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ First, set the `IsTypingField` parameter to specify which field in your data mod
2525
@ref="@ChatRef"
2626
AuthorId="@CurrentUserId"
2727
IsTypingField="@nameof(ChatMessage.IsTyping)"
28-
OnSendMessage="@OnChatSendMessage">
28+
OnSendMessage="@OnChatSendMessage"
29+
TextField="@nameof(ChatMessage.Content)">
2930
</TelerikChat>
3031
3132
@code {

components/chat/quick-actions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ Use `Scroll` or `ScrollButtons` mode when you have many suggestions or longer te
3030
<TelerikChat Data="@ChatData"
3131
Suggestions="@QuickReplies"
3232
SuggestionsLayoutMode="@ChatSuggestionsLayoutMode.Scroll"
33-
OnSuggestionClick="@HandleSuggestionClick">
33+
OnSuggestionClick="@HandleSuggestionClick"
34+
Width="70vw">
3435
</TelerikChat>
3536
3637
@code {
@@ -71,7 +72,8 @@ The `SuggestedActionsLayoutMode` parameter controls how suggested actions (quick
7172
````Razor
7273
<TelerikChat Data="@ChatData"
7374
SuggestedActionsLayoutMode="@ChatSuggestedActionsLayoutMode.ScrollButtons"
74-
OnSendMessage="@HandleSendMessage">
75+
OnSendMessage="@HandleSendMessage"
76+
Width="80vw">
7577
</TelerikChat>
7678
7779
@code {

components/chat/templates.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ This allows you to define context menu actions that can be performed on Chat mes
194194

195195
>caption A complete example that integrates all templates into a Chat component
196196
197-
````RAZOR.skip-repl
197+
````RAZOR
198198
<TelerikChat Data="@ChatData"
199199
@ref="@ChatRef"
200200
Width="600px"
@@ -322,7 +322,6 @@ This allows you to define context menu actions that can be performed on Chat mes
322322
Id = Guid.NewGuid().ToString(),
323323
AuthorName = authorId == "1" ? "John Smith" : "Jane Doe",
324324
AuthorId = authorId,
325-
AuthorImageUrl = authorId == "1" ? FirstUserImage : SecondUserImage,
326325
Content = args.Message,
327326
MessageToReplyId = args.ReplyMessageId,
328327
Status = "Sent",
@@ -361,7 +360,6 @@ This allows you to define context menu actions that can be performed on Chat mes
361360
Id = $"message{i}",
362361
AuthorId = (i % 2 == 1) ? "1" : "2",
363362
AuthorName = (i % 2 == 1) ? "John Smith" : "Jane Doe",
364-
AuthorImageUrl = (i % 2 == 1) ? FirstUserImage : SecondUserImage,
365363
Content = messageTexts[i - 1],
366364
Status = "Seen",
367365
Timestamp = new DateTime(2023, 10, 1, 12, 0, 0).AddMinutes(i * 5)

0 commit comments

Comments
 (0)