Module
Bonsai.DOM
- Package
- purescript-bonsai
- Repository
- grmble/purescript-bonsai
Bonsai DOM Helpers
#focusSelectCmd Source
focusSelectCmd :: forall msg eff. ElementId -> Cmd (bonsai :: BONSAI | eff) msgCmd 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) StringGet the element's text content
#selectInputElementText Source
selectInputElementText :: forall eff. Element -> Eff (bonsai :: BONSAI | eff) UnitSelect the input elements text.
#requestAnimationFrame Source
requestAnimationFrame :: forall eff. Eff (bonsai :: BONSAI | eff) Unit -> Window -> Eff (bonsai :: BONSAI | eff) RequestAnimationFrameIdRequest an animation frame.
#focusElement Source
focusElement :: forall eff. Element -> Eff (bonsai :: BONSAI | eff) UnitFocus the element