akveo / akveo/nebular

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

オープン
#1,621 コメント 7 件 リアクション 3 件 担当者 0 名 GitHub で見る
enhancement module:components P2: important
主要言語
TypeScript
スター
8.1k
フォーク
1.5k
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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 --version
v10.16.0

npm --version
6.9.0

OS: macOS Mojave
Browser: Chrome
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。