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.
html
<kendo-chat>
<ng-template kendoChatAttachmentTemplate let-attachment>
<div>Attachment: {{ attachment.content }}</div>
</ng-template>
</kendo-chat>
Selector
[kendoChatAttachmentTemplate]