NoRedInk/noredink-ui/6.29.0

NOTE: the latest version is 35.9.3

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 6.29.0 found (15 same-name repos checked); no cached copy. Use another version.

Details

Nri.Ui.Dropdown.V2

type alias ViewOptionEntry a =
{ isSelected : Bool
, val : a
, displayText : String
}

This dropdown has atypical select tag behavior.

This dropdown, when closed, will display some default text, no matter what is actually selected.

When the dropdown is opened, the first option will display that default text, be selected, and disabled. The option the user has actually chosen's displayText won't show up at all.

view : String -> List (ViewOptionEntry a) -> (a -> msg) -> Html msg
viewWithoutLabel : String -> List (ViewOptionEntry a) -> (a -> msg) -> Html msg