[{"name":"Dropdown","comment":" Elm UI Dropdown.\n\n@docs State, init\n@docs Msg\n@docs Config, basic, filterable\n@docs withContainerAttributes, withPromptElement, withFilterPlaceholder, withSelectAttributes, withSearchAttributes, withOpenCloseButtons, withListAttributes\n@docs update, view\n\n","unions":[{"name":"Config","comment":" Opaque type that holds the current config\n\n    dropdownConfig =\n        Dropdown.basic DropdownMsg OptionPicked Element.text Element.text\n\n","args":["item","msg"],"cases":[]},{"name":"Msg","comment":" Opaque type for the internal dropdown messages\n","args":["item"],"cases":[]},{"name":"State","comment":" Opaque type that holds the current state\n\n    type alias Model =\n        { dropdownState : Dropdown.State String\n        }\n\n","args":["item"],"cases":[]}],"aliases":[],"values":[{"name":"basic","comment":" Create a basic configuration. This takes:\n\n    - The message to wrap all the internal messages of the dropdown\n    - A message to trigger when an item is selected\n    - A function to get the Element to display from an item, to be used in the select part of the dropdown\n    - A function to get the Element to display from an item, to be used in the item list of the dropdown\n\n    Dropdown.basic DropdownMsg OptionPicked Element.text Element.text\n\n","type":"(Dropdown.Msg item -> msg) -> (Maybe.Maybe item -> msg) -> (item -> Element.Element msg) -> (Basics.Bool -> Basics.Bool -> item -> Element.Element msg) -> Dropdown.Config item msg"},{"name":"filterable","comment":" Create a filterable configuration. This takes:\n\n    - The message to wrap all the internal messages of the dropdown\n    - A message to trigger when an item is selected\n    - A function to get the Element to display from an item, to be used in the select part of the dropdown\n    - A function to get the Element to display from an item, to be used in the item list of the dropdown\n    - A function to get the text representation from an item, to be used when filtering elements in the list\n\n    Dropdown.basic DropdownMsg OptionPicked Element.text Element.text\n\n","type":"(Dropdown.Msg item -> msg) -> (Maybe.Maybe item -> msg) -> (item -> Element.Element msg) -> (Basics.Bool -> Basics.Bool -> item -> Element.Element msg) -> (item -> String.String) -> Dropdown.Config item msg"},{"name":"init","comment":" Create a new state. You must pass a unique identifier for each dropdown component.\n\n    {\n        ...\n        dropdownState = Dropdown.init \"country-dropdown\"\n    }\n\n","type":"String.String -> Dropdown.State item"},{"name":"update","comment":" Update the component state\n\n    DropdownMsg subMsg ->\n        let\n            ( updated, cmd ) =\n                Dropdown.update dropdownConfig subMsg model.dropdownState model.items\n        in\n            ( { model | dropdownState = updated }, cmd )\n\n","type":"Dropdown.Config item msg -> Dropdown.Msg item -> Dropdown.State item -> List.List item -> ( Dropdown.State item, Platform.Cmd.Cmd msg )"},{"name":"view","comment":" Render the view\n\n    Dropdown.view dropdownConfig model.dropdownState model.items\n\n","type":"Dropdown.Config item msg -> Dropdown.State item -> List.List item -> Element.Element msg"},{"name":"withContainerAttributes","comment":" Sets the container visual attributes, default is empty\n\n    Dropdown.withContainerAttributes [ width (px 300) ] config\n\n","type":"List.List (Element.Attribute msg) -> Dropdown.Config item msg -> Dropdown.Config item msg"},{"name":"withFilterPlaceholder","comment":" Sets the placeholder of the Filterable dropdown, default is \"Filter values\"\n\n    Dropdown.withFilterPlaceholder \"Type here...\" config\n\n","type":"String.String -> Dropdown.Config item msg -> Dropdown.Config item msg"},{"name":"withListAttributes","comment":" Sets the item list visual attributes, default is empty\n\n    Dropdown.withListAttributes [ Border.width 1, Border.rounded ] config\n\n","type":"List.List (Element.Attribute msg) -> Dropdown.Config item msg -> Dropdown.Config item msg"},{"name":"withOpenCloseButtons","comment":" Sets the open and close buttons' visual attributes, default is empty\n\n    Dropdown.withOpenCloseButtons { openButton = text \"+\", closeButton = \"-\" } config\n\n","type":"{ openButton : Element.Element msg, closeButton : Element.Element msg } -> Dropdown.Config item msg -> Dropdown.Config item msg"},{"name":"withPromptElement","comment":" Sets the content of the Select, default is \"-- Select --\"\n\n    Dropdown.withPromptElement (el [ Font.color (rgb255 123 123 123) ] <| text \"Pick one\") config\n\n","type":"Element.Element msg -> Dropdown.Config item msg -> Dropdown.Config item msg"},{"name":"withSearchAttributes","comment":" Sets the search visual attributes, default is empty\n\n    Dropdown.withSearchAttributes [ Border.width 0, padding 0 ] config\n\n","type":"List.List (Element.Attribute msg) -> Dropdown.Config item msg -> Dropdown.Config item msg"},{"name":"withSelectAttributes","comment":" Sets the select visual attributes, default is empty\n\n    Dropdown.withSelectAttributes [ Border.width 1, Border.rounded 5, paddingXY 16 8 ] config\n\n","type":"List.List (Element.Attribute msg) -> Dropdown.Config item msg -> Dropdown.Config item msg"}],"binops":[]}]