rakutentech / r10 / R10.DropDown

Craate a Dropdown using HTML select


type alias Option =
{ value : String
, text : String 
}

extraCss : Element.WithContext.Color -> String

view : List (Element.WithContext.Attribute (R10.Context.ContextInternal z) msg) -> { a | colorBackground : Element.WithContext.Color, colorFont : Element.WithContext.Color, currentValue : String, inputHandler : String -> msg, optionList : List Option, fontSize : Basics.Int } -> Type -> Element.WithContext.Element (R10.Context.ContextInternal z) msg

The dropdown.

viewBorderLess : List (Element.WithContext.Attribute (R10.Context.ContextInternal z) msg) -> { a | colorBackground : Element.WithContext.Color, colorFont : Element.WithContext.Color, currentValue : String, inputHandler : String -> msg, optionList : List Option, fontSize : Basics.Int } -> Element.WithContext.Element (R10.Context.ContextInternal z) msg

Slightly different version of the dropdown that has no borders.