Module
Flame.HTML.Attribute
- Package
- purescript-flame
- Repository
- easafe/purescript-flame
Convenience module to simplify export list
Re-exports from Flame.HTML.Attribute.Internal
#ToStringAttribute Source
type ToStringAttribute = ToNodeData String
#ToNumberAttribute Source
type ToNumberAttribute = ToNodeData Number
#ToIntAttribute Source
type ToIntAttribute = ToNodeData Int
#ToClassList Source
class ToClassList a where
Enables either strings or records be used as an argument to class'
Members
Instances
ToClassList String
(Homogeneous r Boolean) => ToClassList (Record r)
#createAttribute Source
createAttribute :: forall a. String -> String -> NodeData a
Creates a HTML attribute
Attributes have name and value opposed to properties, which are presential only
#class' Source
class' :: forall b a. ToClassList b => b -> NodeData a
Re-exports from Flame.HTML.Event
#createRawEvent Source
createRawEvent :: forall message. String -> (Event -> Effect message) -> NodeData message
Raises the given message
for the given event, but also supplies the event itself
#createEvent Source
createEvent :: forall message. EventName -> message -> NodeData message
Raises the given message
for the given event
Re-exports from Flame.HTML.Property
#ToProperty Source
type ToProperty = ToNodeData Boolean
#loop Source
loop :: ToProperty
#isMap Source
isMap :: ToProperty
#createProperty Source
createProperty :: forall a. String -> Boolean -> NodeData a
Creates a property
A property is a presential (boolean) attribute such as checked or enabled