Module

Freedom.VNode

Package
purescript-freedom
Repository
purescript-freedom/purescript-freedom

#VObject Source

type VObject f state m = { children :: Array (VNode f state), didCreate :: Element -> FreeT (f state) m Unit, didDelete :: Element -> FreeT (f state) m Unit, didUpdate :: Element -> FreeT (f state) m Unit, handlers :: Object (Event -> FreeT (f state) m Unit), props :: Object String, tag :: String }

#VElement Source

data VElement f state

Constructors

#VNode Source

data VNode f state

Constructors

#BridgeFoot Source

newtype BridgeFoot f state

#createBridgeFoot Source

createBridgeFoot :: forall state f. Unit -> BridgeFoot f state

#bridge Source

bridge :: forall state f. BridgeFoot f state -> BridgeFoot f state -> Effect Unit

#fromBridgeFoot Source

fromBridgeFoot :: forall state f. BridgeFoot f state -> Effect (Ref (Array (Array (VNode f state))))

#Operations Source

type Operations f state = { getLatestRenderedChildren :: Effect (Array (VNode f state)), getOriginChildren :: Effect (Array (VNode f state)), renderChildren :: Node -> Array (VNode f state) -> Effect Unit }

#VRenderEnv Source

newtype VRenderEnv f state

Constructors

Instances

#VRender Source

newtype VRender f state a

Instances

#operations Source

operations :: forall state f. VRender f state (Operations f state)

#runVRender Source

runVRender :: forall a state f. VRender f state a -> VRenderEnv f state -> Aff a