Module

Specular.Dom.Widget

Package
purescript-specular
Repository
restaumatic/purescript-specular

#Widget Source

#RWidget Source

#runWidgetInNode Source

runWidgetInNode :: forall a. Node -> Widget a -> Effect (Tuple a (Effect Unit))

Runs a widget in the specified parent element. Returns the result and cleanup action.

#runWidgetInBody Source

runWidgetInBody :: forall a. Widget a -> Effect (Tuple a (Effect Unit))

Runs a widget document.body. Returns the result and cleanup action.

#runMainWidgetInNode Source

runMainWidgetInNode :: forall a. Node -> Widget a -> Effect a

Runs a widget in the specified parent element and discards cleanup action.

#runMainWidgetInBody Source

runMainWidgetInBody :: forall a. Widget a -> Effect a

Runs a widget in document.body and discards cleanup action.

#spawnWidgetInNode Source

spawnWidgetInNode :: forall m a. MonadEffect m => MonadCleanup m => Node -> Widget a -> m a

Runs a widget in the specified parent element. The widget is destroyed and removed from DOM on cleanup.

#spawnWidgetInBody Source

spawnWidgetInBody :: forall m a. MonadEffect m => MonadCleanup m => Widget a -> m a

Runs a widget in document.body. The widget is destroyed and removed from DOM on cleanup.

#liftWidget Source

liftWidget :: forall m a. MonadDomBuilder m => Widget a -> m a

Lift a Widget into any MonadWidget monad.