Module
Bonsai.DOM
- Package
- purescript-bonsai
- Repository
- grmble/purescript-bonsai
Bonsai DOM Helpers
#focusSelectCmd Source
focusSelectCmd :: forall msg eff. ElementId -> Cmd (bonsai :: BONSAI | eff) msg
Cmd that will set the focus and select the input field
Re-exports from Bonsai.DOM.Primitive
#RequestAnimationFrameId Source
#textContent Source
textContent :: forall eff. Element -> Eff (bonsai :: BONSAI | eff) String
Get the element's text content
#selectInputElementText Source
selectInputElementText :: forall eff. Element -> Eff (bonsai :: BONSAI | eff) Unit
Select the input elements text.
#requestAnimationFrame Source
requestAnimationFrame :: forall eff. Eff (bonsai :: BONSAI | eff) Unit -> Window -> Eff (bonsai :: BONSAI | eff) RequestAnimationFrameId
Request an animation frame.
#focusElement Source
focusElement :: forall eff. Element -> Eff (bonsai :: BONSAI | eff) Unit
Focus the element