Display image as response in Chat

1 Answer 23 Views
Chat
Euan
Top achievements
Rank 1
Iron
Euan asked on 13 Nov 2024, 02:34 PM

Hi,

I was wondering if it was possible to display an image as a response in the Chat control? For example, respond with a png to a users question as oppose to a textual respone. I noticed the renderAttachments method but I am not sure if that is the correct approach.

Thanks,

Euan

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 18 Nov 2024, 11:38 AM

Hello Euan,

You can take a look at the last example in the renderMessage method where it is demonstrated how a custom template can be created. 

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

Here is such a Dojo example: https://dojo.telerik.com/VowvOfhS.

I hope this helps. 

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Chat
Asked by
Euan
Top achievements
Rank 1
Iron
Answers by
Neli
Telerik team
Share this question
or