Module

Halogen.HTML.Core

Package
purescript-halogen
Repository
purescript-halogen/purescript-halogen

#HTML Source

newtype HTML w i

Constructors

Instances

#renderWidget Source

renderWidget :: forall w x i j. (i -> j) -> (w -> HTML x j) -> HTML w i -> HTML x j

#widget Source

widget :: forall p q. p -> HTML p q

#text Source

text :: forall w i. String -> HTML w i

Constructs a text node HTML value.

#element Source

element :: forall w i. Maybe Namespace -> ElemName -> Array (Prop i) -> Array (HTML w i) -> HTML w i

A smart constructor for HTML elements.

#keyed Source

keyed :: forall w i. Maybe Namespace -> ElemName -> Array (Prop i) -> Array (Tuple String (HTML w i)) -> HTML w i

A smart constructor for HTML elements with keyed children.

#prop Source

prop :: forall value i. IsProp value => PropName value -> value -> Prop i

Create a HTML property.

#attr Source

attr :: forall i. Maybe Namespace -> AttrName -> String -> Prop i

Create a HTML attribute.

#handler Source

handler :: forall i. EventType -> (Event -> Maybe i) -> Prop i

Create an event handler.

#ref Source

ref :: forall i. (Maybe Element -> Maybe i) -> Prop i

Re-exports from Halogen.VDom

#ElemName Source

Re-exports from Halogen.VDom.DOM.Prop

#PropValue Source

data PropValue :: Type

#Prop Source

data Prop a

Attributes, properties, event handlers, and element lifecycles. Parameterized by the type of handlers outputs.

Constructors

Instances

Re-exports from Web.HTML.Common

#PropName

newtype PropName value

Constructors

  • PropName String

Instances

  • Newtype (PropName value) _
  • Eq (PropName value)
  • Ord (PropName value)

#ClassName

newtype ClassName

A wrapper for strings which are used as CSS classes.

Constructors

  • ClassName String

Instances

  • Newtype ClassName _
  • Eq ClassName
  • Ord ClassName

#AttrName

newtype AttrName

A wrapper for attribute names.

Constructors

  • AttrName String

Instances

  • Newtype AttrName _
  • Eq AttrName
  • Ord AttrName