Module
Freedom.UI
- Package
- purescript-freedom
- Repository
- purescript-freedom/purescript-freedom
#Subscription Source
type Subscription state = Query state -> Effect Unit
The type of subscription.
Hooks of events that aren't related a specific node like window events, timers and so on.
#Renderer Source
type Renderer state = { getLatestRenderedChildren :: Effect (Array (VNode state)), renderChildren :: Node -> Array (VNode state) -> Effect Unit }
The type of rendering operations.
getLatestRenderedChildren
: Get children already rendered.renderChildren
: Patch passed children with previous rendered children.
#VObject Source
type VObject state = { children :: Array (VNode state), didCreate :: Element -> Operation state -> Effect Unit, didDelete :: Element -> Operation state -> Effect Unit, didUpdate :: Element -> Operation state -> Effect Unit, handlers :: Object (Event -> Operation state -> Effect Unit), props :: Object String, tagName :: String }
The representation of a specified tag element.
#renderingManually Source
renderingManually :: forall state. VNode state -> VNode state
If you want to render children manually, you should use this.
#modifyVObject Source
modifyVObject :: forall state. (VObject state -> VObject state) -> VNode state -> VNode state
The low level API for modifying a VNode
of specified tag element.