New to Kendo UI for Angular? Start a free 30-day trial
AttachmentTemplateDirective
Defines a template for displaying message attachments.
To define an attachment template, nest an <ng-template> tag with the kendoChatAttachmentTemplate attribute inside the <kendo-chat> component.
The template context is set to the attachment instance.
For more information, refer to the article on message attachments.
You can use the following field:
attachment—The attachment instance.message—The message instance.
html
<kendo-chat>
<ng-template kendoChatAttachmentTemplate let-attachment let-message>
<div>Attachment: {{ attachment.content }}</div>
</ng-template>
</kendo-chat>
Selector
[kendoChatAttachmentTemplate]