lenards/elm-ui-patternfly/3.0.0

NOTE: the latest version is 4.0.2

PF6.Tile

PF6 Tile component

A selectable card-like tile, used for option selection in forms and wizards.

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

Definition

type Tile msg

Opaque Tile type

Constructor

{ title : String
, onSelect : msg
}
-> Tile msg

Construct a Tile

tile { title = "Option A", onSelect = SelectOption "a" }

Modifiers

withSelected : Tile msg -> Tile msg

Mark the tile as selected

withDisabled : Tile msg -> Tile msg

Disable the tile

withIcon : Element msg -> Tile msg -> Tile msg

Add an icon to the tile

withStacked : Tile msg -> Tile msg

Stack icon above title (default is side-by-side)

Rendering

toMarkup : Tile msg -> Element msg

Render the Tile as an Element msg