Use a placeholder string for all dropdowns

This commit is contained in:
Eike Kettner
2021-04-11 20:37:16 +02:00
parent bbda4e84d7
commit 7b1cbe6435
31 changed files with 66 additions and 32 deletions

View File

@ -152,6 +152,7 @@ update msg model =
type alias ViewSettings a =
{ display : a -> String
, icon : a -> Maybe String
, selectPlaceholder : String
, style : DS.DropdownStyle
}
@ -204,7 +205,7 @@ viewStyled2 cfg error sel model =
]
[ selIcon
, Maybe.map cfg.display sel
|> Maybe.withDefault "Select"
|> Maybe.withDefault cfg.selectPlaceholder
|> text
]
, div