New to Kendo UI for Angular? Start a free 30-day trial
ChatTimestampTemplateDirective
Defines a template for displaying the timestamp of the messages.
To define a timestamp template, nest an <ng-template>
tag with the kendoChatTimestampTemplate
directive inside the <kendo-chat>
component.
The template context is set to the current timestamp.
For more information, refer to the article on message templates.
html
<kendo-chat>
<ng-template kendoChatTimestampTemplate let-timestamp>
<div>Message time: {{ timestamp }}</div>
</ng-template>
</kendo-chat>
Selector
[kendoChatTimestampTemplate]