Module

Flame.HTML.Attribute.Internal

Package
purescript-flame
Repository
easafe/purescript-flame

Definition of HTML attributes

#ToStringAttribute Source

#ToIntAttribute Source

#ToNumberAttribute Source

#ToClassList Source

class ToClassList a  where

Enables either strings or records be used as an argument to class'

Members

Instances

#class' Source

class' :: forall a b. ToClassList b => b -> NodeData a

#style Source

style :: forall a r. Homogeneous r String => Record r -> NodeData a

#caseify Source

caseify :: String -> String

Transforms its input into a proper html attribute/tag name, i.e. lower case and hyphenated

#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

#createSetAttribute Source

createSetAttribute :: forall message. String -> String -> NodeData message

Creates a HTML attribute that uses setAttribute

Attributes have name and value opposed to properties, which are presential only