Robert Lee
2017-01-24 22:20:47 UTC
Would anyone else find --Html.Attributes.none-- useful?
none : Html.Attribute a
Use cases look like the following.
....
view: Model -> Html.Html Msg
let
onClickButton =
case model.isClickedAlready of
True ->
Html.Events.onClick Submit
False ->
Html.Attributes.none
in
Div [onClickButton] ....
.....
none : Html.Attribute a
Use cases look like the following.
....
view: Model -> Html.Html Msg
let
onClickButton =
case model.isClickedAlready of
True ->
Html.Events.onClick Submit
False ->
Html.Attributes.none
in
Div [onClickButton] ....
.....
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.