Open rhuang opened 5 years ago
I want it too.
It should also have the ability to scroll up and load more messages.
Also, I am struggling to order the messages by date ascending. The UI somehow always orders it by message date descending. Any ideas?
@adarshmenon You have to sort the messages yourself by the date.
I need this feature. too..
For my own perpose I change those lines of code and publish @nebular/theme
to our own npm registry.
sounds like done. this issue should be closed
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
I saw in https://github.com/akveo/nebular/blob/master/src/framework/theme/components/chat/chat-message-text.component.ts#L15 that the
date
input intonb-chat-message
is always piped intoshortTime
. This is confusing if the messages span multiple days. Can something likedatePipeFormat: string
(https://angular.io/api/common/DatePipe#pre-defined-format-options) be added as an input as well?Expected behavior:
The chat messages would display the date as well to prevent confusing over messages spanning multiple days.
Steps to reproduce:
Add messages to
nb-chat-message
where the dates span multiple days.Other information:
npm, node, OS, Browser