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: controls/chat/functionality/actions.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,15 @@ position: 0
10
10
11
11
# Default Actions
12
12
13
-
The **RadChat** control has a support for default **suggested actions**. To display the **suggestedActions** propmt, you need to call the `renderSuggestedActions` method of the control.
13
+
The **RadChat** control has a support for default **suggested actions** which are rendered inside a Suggested Actions Pane. A Suggested Action is a button that the user can tap/click to provide input. That is why they can be also called Quick Actions.
14
+
15
+
Unlike buttons that appear within [rich cards]({%slug chat/cards%}) (which remain visible and accessible to the user even after being tapped), buttons that appear within the suggested actions pane will disappear after the user makes a selection. This prevents the user from tapping stale buttons within a conversation and simplifies bot development (since you will not need to account for that scenario).
16
+
17
+
To display the **suggestedActions** propmt, you need to call the `renderSuggestedActions` method of the control.
18
+
19
+
>caption **Figure 1**: A Chat with suggested actions.
20
+
21
+

Copy file name to clipboardExpand all lines: controls/chat/functionality/cards.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,11 @@ position: 1
10
10
11
11
# Default Cards
12
12
13
-
Out of the box, the **RadChat** supports the default **heroCards** which can be displayed in the chat flow when calling the `renderAttachments` method of the control.
13
+
Rich cards are complex attachment messages that can contain additional message styling, templates, and images. The **RadChat** control supports the default **heroCards** template which can be displayed in the chat flow when calling the `renderAttachments` method of the control and pass `heroCard` as a value for the `contentType` property of an attachment.
14
+
15
+
>caption **Figure 1**: A Chat that uses the default HeroCard template.
16
+
17
+

14
18
15
19
````ASPX
16
20
<telerik:RadChat runat="server" ID="RadChat1">
@@ -34,13 +38,19 @@ function renderAttachments() {
To further customize the appearance of a card, you can also use [Custom Templates]({%slug chat/functionality/templates%}) and [Custom Components]({%slug chat/functionality/components%}) articles.
Copy file name to clipboardExpand all lines: controls/chat/functionality/components.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,10 @@ The **RadChat** control supports the implementation of custom components which a
15
15
16
16
The following example demonstrates how to place a [Kendo UI Calendar](https://docs.telerik.com/kendo-ui/controls/scheduling/calendar/overview) in a custom RadChat component.
17
17
18
+
>caption **Figure 1**: A Chat renders a Kendo UI Calendar to facilitate date choosing.
19
+
20
+

Copy file name to clipboardExpand all lines: controls/chat/functionality/templates.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,11 @@ position: 2
13
13
14
14
The **RadChat** control supports the definition of custom templates to fit any custom payload that is returned by the service.
15
15
16
-
The following example demonstrates how to implement a simple [Kendo UI template](https://docs.telerik.com/kendo-ui/framework/templates/overview) and to register it for the **RadChat**.
16
+
The following example demonstrates how to implement a simple [Kendo UI Template](https://docs.telerik.com/kendo-ui/framework/templates/overview) and to register it for the **RadChat**.
17
+
18
+
>caption **Figure 1**: A chat uses custom Kendo UI Templates.
19
+
20
+

Copy file name to clipboardExpand all lines: controls/chat/overview.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ This article provides a brief overview of the main features of the **RadChat** c
24
24
25
25
***[Custom Components]({%slug chat/functionality/components%})** - Integration of custom components, which allows the use of JavaScript to render any content.
26
26
27
+
To get familiar with the UI elements of the RadChat you can check the [RadChat Structure]({%slug chat/structure%}) article.
Copy file name to clipboardExpand all lines: controls/chat/server-side-programming/overview.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,6 @@ You can configure the settings of **RadChat** and create its elements on the cod
16
16
17
17
**Example 1** shows a possible application of the Server-Side API of the chat. The code in the example configures some settings of the chat, of its User and Messages settings, then assigns the event handlers of the client-side events.
18
18
19
-
>caption **Figure 1**: A chat that is configured from the code-behind.
Copy file name to clipboardExpand all lines: controls/chat/structure.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,31 @@ position: 2
10
10
11
11
# Structure Overview
12
12
13
+
>caption **Figure 1**: A chat structure.
13
14
15
+

14
16
17
+
The two main elements the **RadChat** control is built with are **Message List** and **Message Box**.
15
18
19
+
## The Message List can contain:
16
20
21
+
***Message Bubble** - element containing a message string. Usually the current user's message bubbles are right aligned and other users/chatbots' message bubbles are left aligned.
22
+
***Message Group** - a continuous series of message bubbles by the same user.
23
+
***Avatar** - a user icon next to the message bubble indicating the sender of the message. If there are more than one continuous messages from the same user, the icon stands only next to the last message of the message group.
24
+
***Author** - a text message indicating the author of the message, if such is available. Displayed over the first message bubble of a message group.
25
+
***Message Timestamp** - date string near the message bubble showing the time when the message is sent. Clicking the message bubble toggles the timestamp visibility.
26
+
***Suggested Action** - button that the user can tap/click to provide input. Unlike buttons that appear within rich cards (which remain visible and accessible to the user even after being tapped), buttons that appear within the suggested actions pane will disappear after the user makes a selection. This prevents the user from tapping stale buttons within a conversation and simplifies bot development (since you will not need to account for that scenario).
27
+
***Suggested Actions Pane** - an element that contains one or more suggested action elements.
28
+
***Rich Card Attachment** - complex messages that can contain more that just a message string. For example, every card can contain image, custom styling and suggested actions. The default card available in **RadChat** is a "heroCard". More on cards can be found in the [Custom Templates]({%slug chat/functionality/templates%}) article.
29
+
***Deck of cards** - collection of rich cards that can be listed in two ways:
30
+
***Carousel** - displays multiple cards *horizontally*. Might be referred as **Card Deck**;
31
+
***List** - displays multiple cards *vertically*. Might be referred as **Card List**;
17
32
18
33
34
+
## The Message Box contains
19
35
36
+
***Message Input** - input where the user writes their message. When there is no message written, a placeholder message is visible.
37
+
***Send Button** - button that when clicked sends the message in the message input. When the focus is on the message input, pressing the `Enter` key is the same as clicking the send button.
0 commit comments