Open staeter opened 2 years ago
The equivalent of Element.none but for attributes:
Element.none
it would give
maybeBlur = if blur then Html.Attributes.style "filter" "blur(4px)" |> Element.htmlAttribute else Element.Attributes.none view = Element.el [ ... , maybeBlur ] Element.none
instead of
maybeBlur = if blur then Html.Attributes.style "filter" "blur(4px)" |> Element.htmlAttribute |> List.singleton else [] view = Element.el ( [ ... ] ++ maybeBlur ) Element.none
I'm using:
noneAttribute : Attribute msg noneAttribute = htmlAttribute (Html.Attributes.classList [])
The equivalent of
Element.none
but for attributes:it would give
instead of