lenards / elm-ui-patternfly / PF4.ChipGroup

A container component for PF4.Chip element(s)

Definition


type ChipGroup msg

Opaque ChipGroup element that can produce msg messages


type ChipsShown

Defines how many Chips to show when rendering.

Constructor function

group : List String -> (String -> msg) -> ChipGroup msg

Constructs a group of Chips creates from the List String

Configuration functions

withCategory : String -> ChipGroup msg -> ChipGroup msg

Configures group to have category

withClickMsg : msg -> ChipGroup msg -> ChipGroup msg

Configures what msg is produced by group onClick

Rendering element

toMarkup : ChipGroup msg -> Element msg

Given the custom type representation, renders as an Element msg.