bulmex-2.1.0: Reflex infused with bulma (css)

Safe HaskellNone
LanguageHaskell2010

Reflex.Bulmex.Load

Contents

Description

Bulma loading screen w/ help of extension: https://wikiki.github.io/elements/pageloader/

Synopsis

Documentation

pageLoader :: DomBuilder t m => Text -> m a -> m a Source #

prerenderLoad :: (Prerender js t m, DomBuilder t m) => m () -> m () Source #

show a spinning image while loading JS

Load tricks

withReadyEvt :: (PostBuild t m, PerformEvent t m, TriggerEvent t m, MonadIO (Performable m)) => m b -> m (b, Event t ()) Source #

attach the ready event to the widget, which fires once it's usuable

postpone :: (DomBuilder t m, MonadHold t m) => Event t () -> m () -> m () Source #

Don't display something untill event occurs, combine with getready to delay loading of non-critical components

getReady :: (PostBuild t m, PerformEvent t m, TriggerEvent t m, MonadIO (Performable m)) => m (Event t ()) Source #

This doesn't work always, When finished use: https://github.com/reflex-frp/reflex-dom/pull/273 postbuild is imediate for sampling, adding a delay makes it after widget completes see: https://github.com/reflex-frp/reflex-dom-semui/issues/18