Module

Flame.Types

Package
purescript-flame
Repository
easafe/purescript-flame

Types common to Flame modules

#VNodeEvents Source

data VNodeEvents :: Type

Represents a list of events listeners

#VNodeData Source

type VNodeData = { attrs :: Object String, on :: VNodeEvents, props :: Object String }

Data (properties, attributes, events) attached to a VNode

#VNode Source

newtype VNode

Virtual DOM representation

Constructors

#App Source

type App model message extension = { view :: model -> Html message | extension }

#PreApplication Source

type PreApplication model message = App model message (init :: model)

PreApplication contains

  • init – the initial model
  • view – a function to update your markup

#DOMElement Source

type DOMElement = Element

A native HTML element

#ToNodeData Source

type ToNodeData message = forall b. message -> NodeData b

#Tag Source

type Tag = String

#Key Source

type Key = String

#Html Source

data Html message

Convenience wrapper around VNode

Constructors

Instances

#NodeData Source

data NodeData message

Convenience wrapper around VNodeData

Constructors

Instances

#(:>) Source

Operator alias for Data.Tuple.Tuple (right-associative / precedence 6)

Infix tuple constructor