Module
Text.Smolder.Markup
- Package
- purescript-open-smolder
- Repository
- purescript-open-community/purescript-open-smolder
#MarkupM Source
data MarkupM e aRepresentation 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, a Doctype
which maps to a DOCTYPE declaration, or Empty, which maps
to an empty NodeList.
Constructors
Element NS String (Markup e) (CatList Attr) (CatList (EventHandler e)) aDoctype String aContent String aEmpty a
Instances
#Attributable Source
#optionalWith Source
optionalWith :: forall h. Attributable h => h -> Boolean -> Attribute -> hAdd an attribute to a markup node only if the supplied boolean value is true.
#EventHandlers Source
#on Source
on :: forall e. String -> e -> EventHandlers eConstruct an event handler for a named event.
Add an attribute to a markup node.