On Tuesday, January 24, 2017 at 10:21:31 PM UTC, Robert Lee wrote:
>
> Would anyone else find --Html.Attributes.none-- useful?
>


+1 Yes. 

Also elm-mdl has a 'when' function which is very useful, and a version of 
it for Html.Attribute would be very handy:

Button.disabled |> when (not model.isRunning)

In a similar way to optional attributes, I find that when building the 
children of a dom node I end up having to code list manipulations that a 
'when' operator could help with:

div [] 
 [ someInnerDiv,
   someOptionalDiv |> when model.isSelected ]

If there was an Html.none.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to