NoRedInk/noredink-ui/6.23.0

NOTE: the latest version is 35.9.3

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