Module
Flame.HTML.Attribute.Internal
- Package
- purescript-flame
- Repository
- easafe/purescript-flame
Definition of HTML attributes
#ToStringAttribute Source
type ToStringAttribute = ToNodeData String
#ToIntAttribute Source
type ToIntAttribute = ToNodeData Int
#ToNumberAttribute Source
type ToNumberAttribute = ToNodeData Number
#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)
#class' Source
class' :: forall b a. ToClassList b => b -> NodeData a
#createAttribute Source
createAttribute :: forall message. String -> String -> NodeData message
Creates a HTML attribute
Attributes have name and value opposed to properties, which are presential only