This is a migrated thread and some comments may be shown as answers.

evaluating Kendo

1 Answer 143 Views
Chat
This is a migrated thread and some comments may be shown as answers.
Winanjaya
Top achievements
Rank 1
Winanjaya asked on 05 Sep 2018, 05:29 AM

Hi..

How to set multiline in a text message?

I have some texts as below:

Hello this is 1st message.
Hello this is 2nd message.
Hello this is 3rd message.

it shows on fulfillmentMessages like below:

Hello this is 1st message. Hello this is 2nd message. Hello this is 3rd message.

2. How to show youtube channel in a carousel? 

3. openUrl type in suggestionActions not working, below is the json format:

          "suggestedActions": [
            [
              {
                "type": "openUrl",
                "title": "Human Resource",
                "value": "https://youtu.be/FAioXDmZ99E"
              },
              {
                "type": "openUrl",
                "title": "Tour & Travel",
                "value": "https://youtu.be/K1BFaw99vkc"
              },
3. For multiple messages, we expect the chatbot's image on the first of message (see enclosed image, expecting location is on green cicle).
4. how to show typing indicator?

 

please help ..

 

thanks a lot

Win

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 06 Sep 2018, 11:19 AM
Hello Winanjaya,

I am afraid that, for the time being, multiline messages are not implemented. This could be suggested as a feature enhancement in our public portal below:

http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback

As for the carousel videos - you can define them in renderAttachmnets and set the attachmnetLayout to a carousel, as demonstrated below:

$("#chat").kendoChat();
 
  var chat = $("#chat").data("kendoChat");
 
  chat.renderAttachments({
    attachments: [{
      contentType: "quote",
      content: {
      }
    },
                 {
      contentType: "quote",
      content: {
      }
    },
                 {
      contentType: "quote",
      content: {
      }
    }],
    attachmentLayout: "carousel"
  }, chat.getUser());

Regarding your third question - such openUrl option is not available for the suggestedActions. The object accepts only title and value:

https://docs.telerik.com/kendo-ui/api/javascript/ui/chat/methods/rendersuggestedactions

As for the multiple messages - I am afraid that the current rendering is by design (same as facebook chat), and you can use the UserVoice portal again, in order to suggest different rendering or a configuration to change the position of the icon.

Lastly, the typing indicator could be enabled through the renderMessage option as demonstrated in the example below:

https://docs.telerik.com/kendo-ui/api/javascript/ui/chat/methods/rendermessage
(see Example - Render typing indicator at the end of the article )

Hope this would help.

Regards,
Nencho
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Chat
Asked by
Winanjaya
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or