Module
Text.Smolder.Markup
- Package
- purescript-smolder
- Repository
- bodil/purescript-smolder
#MarkupM Source
data MarkupM e a
Representation of a markup node.
This is either an Element
, which maps to a DOM element,
a Content
node, which maps to a DOM text node, or Empty
,
which maps to an empty NodeList
.
Constructors
Instances
#Attributable Source
#optionalWith Source
optionalWith :: forall h. Attributable h => h -> Boolean -> Attribute -> h
Add an attribute to a markup node only if the supplied boolean value is true.
#EventHandlers Source
#on Source
on :: forall e. String -> e -> EventHandlers e
Construct an event handler for a named event.
Add an attribute to a markup node.