lenards/elm-ui-patternfly/2.0.0

NOTE: the latest version is 4.0.2

PF6.Timestamp

PF6 Timestamp component

A formatted date/time display with optional icon and tooltip.

See: https://www.patternfly.org/components/timestamp

Definition

type Timestamp msg

Opaque Timestamp type

Constructor

timestamp : String -> Timestamp msg

Construct a Timestamp with display text

timestamp "Jan 1, 2024, 12:00 PM"

Modifiers

withTooltip : String -> Timestamp msg -> Timestamp msg

Add a tooltip shown on hover

Show a default clock icon before the timestamp

withCustomIcon : Element msg -> Timestamp msg -> Timestamp msg

Show a custom icon before the timestamp

Rendering

toMarkup : Timestamp msg -> Element msg

Render the Timestamp as an Element msg