Nebular: [Chat UI] message input "date" should allow for different date formatting

Created on 15 Jun 2019  路  7Comments  路  Source: akveo/nebular

Issue type

I'm submitting a ... (check one with "x")

  • [ ] bug report
  • [x] feature request

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 into nb-chat-message is always piped into shortTime. This is confusing if the messages span multiple days. Can something like datePipeFormat: 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

<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->
node --version
v10.16.0

npm --version
6.9.0

OS: macOS Mojave
Browser: Chrome
important enhancement components

Most helpful comment

I want it too.

All 7 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChristianVega5421 picture ChristianVega5421  路  3Comments

rhajizadeh picture rhajizadeh  路  3Comments

bnbs picture bnbs  路  4Comments

johnsnow20087349 picture johnsnow20087349  路  3Comments

aqsdc1 picture aqsdc1  路  3Comments