Custom Template

Is it possible to make a template that returns something this?

I need to pass one object that contains many information than just text

Any idea?



3 Replies

SV Suja Venkatesan Syncfusion Team January 27, 2022 03:41 PM UTC

Hi Davi, 

Currently, we are checking the possibilities to achieve your requirement on our end. We will update you on the further details on or before January 31, 2022. We appreciate your patience until then. 

Regards, 
Suja 



DF Davi Fabiano January 27, 2022 05:50 PM UTC

Thanks!

I will be waiting.


Regards



SV Suja Venkatesan Syncfusion Team January 31, 2022 03:22 PM UTC

Hi Davi, 

You can achieve you requirement by defining custom template for incoming and outgoing messages having customTextMessage which inherit from SfChat.TextMessage. In that CustomTextMessage we can define the custom object as one of the property. We have prepared a simple sample based on your requirement and attached it in the below sample link. 


Please have a look at this sample and let us know if you need any other assistance. 

Regards, 
Suja 


Loader.
Up arrow icon