Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 705 Bytes

Util.md

File metadata and controls

29 lines (18 loc) · 705 Bytes

Module Halogen.Util

appendTo

appendTo :: forall m eff. (MonadEff (dom :: DOM | eff) m) => String -> HTMLElement -> m Unit

A utility for appending an HTMLElement to the element selected using querySelector element (synchronously).

appendToBody

appendToBody :: forall m eff. (MonadEff (dom :: DOM | eff) m) => HTMLElement -> m Unit

A utility for appending an HTMLElement to the current document's body element once the document has loaded.

onLoad

onLoad :: forall m eff. (MonadEff (dom :: DOM | eff) m) => Eff (dom :: DOM | eff) Unit -> m Unit

On load, discard the onLoad event and call a synchronous action.