dlsc-software-consulting-gmbh / GemsFX

A collection of JavaFX controls and utilities.
Apache License 2.0
436 stars 51 forks source link

Add timeConverter Property to NotificationView for Custom Time Formatting #152

Closed leewyatt closed 1 month ago

leewyatt commented 1 month ago

Description: The NotificationView class currently uses a default time converter to display dates and times, which is implemented within the ContentPane inner class. This converter formats date-time information in a pre-defined way ("now", "yesterday", "2 days ago", etc.). While this works well for most cases, there is a need to allow users to customize how date and time are formatted based on their specific requirements.

Proposed Feature: Introduce a timeConverter property in the NotificationView class. This property should allow users to define their own StringConverter implementation, which can then be used across all instances of NotificationView to format date and time information.