Module
Bonsai.DOM
- Package
- purescript-bonsai
- Repository
- grmble/purescript-bonsai
Bonsai DOM Helpers
#affElementById Source
affElementById :: forall eff. ElementId -> Aff (dom :: DOM | eff) Element
Get a DOM element in a Aff context
This represents failure as Aff error
#focusSelectCmd Source
focusSelectCmd :: forall msg eff. ElementId -> Cmd (dom :: DOM | eff) msg
Cmd that will set the focus and select the input field
Re-exports from Bonsai.DOM.Internal
#domRequestAnimationFrame Source
domRequestAnimationFrame :: forall eff. Eff (dom :: DOM | eff) Unit -> Eff (dom :: DOM | eff) RequestAnimationFrameId
Request animation frame