Creates a List of ChooserItems component.
#Configuration
Represents the component State.
Represents an internal Msg for the component.
Represents a single item which can be selected via ListChooser's api.
#Configuration Helpers
Creates the configuration of the ListChooser. ...
myConfig : ListChooser.Config
myConfig =
let
itemsPerView =
5
viewAllLabel =
"Show all"
viewPartialLabel =
"Show first " ++ (String.fromInt itemsPerView) ++ " elements"
in
ListChooser.config itemsPerView viewAllLabel viewPartialLabel
...Creates the first instance of a ListChooser.
Updates the State of the component. Used by the parent application to
dispatch messages to this component.
#Helpers
Creates a representation of a ChooserItem.
...
myItem : ListChooser.ChooserItem
myItem =
let
slug =
"my_item_slug"
content =
"Lorem ipsum dolor sit amet."
isSelected =
False
in
ListChooser.createItem slug content isSelected
...Retrieves the all ViewMode constructor.
Retrieves the partial ViewMode constructor.
#Render
Represents the configuration of the component.