Is there any way to customize the user icon of kendo conversational ui?

1 Answer 53 Views
Avatar Conversational UI Icon
work
Top achievements
Rank 1
work asked on 31 May 2022, 06:30 AM

I am using the kendo conversational ui to create the chat feature of my application.


I am mainly using this code from this article - https://www.telerik.com/kendo-angular-ui/components/conversational-ui


I am able to use the user icon and assign a image to it by accessing the user interface through my component file-


' readonly externalUser: User = {
id: 0,
name: 'Bot',
avatarUrl:
urlForImage,
}; '


The user icon is displayed automatically through the kendo chat decorator in the html file, hence I am unable to find a way to make any changes other to it. I need to find a way to make the user icon clickable so that I am able to show the user's profile popup with info like email id, address, contact number etc through it. Any help is appreciated.

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 02 Jun 2022, 08:15 AM

Hello,

The desired functionality can be achieved through a custom implementation, based on handling the click event on the whole Conversational UI component, and filtering the target by the "k-avatar" class to ensure only clicks on the avatar image are handled.

Then the developer can provide the desired custom logic in the event handler. The following example demonstrates this approach:

https://stackblitz.com/edit/angular-qvnaog?file=src%2Fapp%2Fapp.component.ts

I hope this helps.

Regards,
Dimiter Topalov
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
Avatar Conversational UI Icon
Asked by
work
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or