NoRedInk/noredink-ui/6.19.1

NOTE: the latest version is 35.9.3

Nri.Ui.Html.Attributes.V2

Extras for working with Html.Attributes.

This is the new version of Nri.Ui.Html.Attributes.Extra.

none : Attribute msg

Represents an attribute with no semantic meaning, useful for conditionals.

This is implemented such that whenever Html.Attributes.Extra.none is encountered by VirtualDom it will set a meaningless property on the element object itself to null:

domNode['Html.Attributes.Extra.none'] = null

It's totally safe and lets us clean up conditional and maybe attributes

includeIf : Bool -> Attribute msg -> Attribute msg

conditionally include an attribute. Useful for CSS classes generated with UniqueClass!