Extensions to the Html.Attributes
library.
defaultValue : Json.Encode.Value -> Html.Attribute msg
Set a default value for an input field.
defaultString : String -> Html.Attribute msg
Convenience version of defaultValue
, for String
s.
defaultInt : Basics.Int -> Html.Attribute msg
Convenience version of defaultValue
, for Int
s.
defaultFloat : Basics.Float -> Html.Attribute msg
Convenience version of defaultValue
, for Float
s.
styleList : List ( String, String, Basics.Bool ) -> List (Html.Attribute msg)
This function makes it easier to specify a conditional set of styles. This the style-equivalent of elm-html's classList.