web-components icon indicating copy to clipboard operation
web-components copied to clipboard

Message list items should support timestamps as dates

Open marcushellberg opened this issue 1 year ago • 1 comments

Describe your motivation

Right now, the API for message list item assumes you pass in a string for the time. If you pass in "right now", as in the API docs, it remains "right now" even if an hour passes.

Describe the solution you'd like

I would like the item to take a date object as the time. The message list should have a default formatter for times that can be overridden.

Describe alternatives you've considered

  • Updating the entire message history every few seconds
  • Not using relative times

Additional context

No response

marcushellberg avatar Feb 19 '24 14:02 marcushellberg

Related issue: https://github.com/vaadin/web-components/issues/2060

yuriy-fix avatar Feb 22 '24 14:02 yuriy-fix