bulmex-2.1.0: Reflex infused with bulma (css)

Safe HaskellNone
LanguageHaskell2010

Reflex.Bulmex.Form

Contents

Description

Form capture enter presses and provide an html like control flow. They also indicate to the child monad how an action is performing with spinstates.

Synopsis

Documentation

actionForm :: (DomBuilder t m, MonadHold t m, MonadFix m) => (a -> Event t () -> m (Event t b)) -> (Event t b -> Dynamic t SpinState -> m (a, Event t FormAction, c)) -> m c Source #

This will make send on enter work for a form. Gives a spinstate to a form and hooks up onenter press to it use actReqButton for sane defaults

form :: (DomBuilder t m, MonadFix m) => (Event t () -> m a) -> m a Source #

A form captures enter presses of child componetns and sends it to them

Spin

withSpinDyn :: (DomBuilder t m, PerformEvent t m, TriggerEvent t m, MonadIO (Performable m), MonadHold t m, MonadFix m) => AttrMap -> (Dynamic t AttrMap -> m (Event t ())) -> (Event t () -> m (Event t b)) -> m (Event t b) Source #

spinWidget :: (DomBuilder t m, PerformEvent t m, TriggerEvent t m, MonadIO (Performable m), MonadHold t m, MonadFix m) => (Dynamic t SpinState -> m (Event t ())) -> (Event t () -> m (Event t b)) -> m (Event t b) Source #

This looks a lot like withDebounceEvtReq, maybe a better abstraction is possible?

aSpinButtonClass :: (DomBuilder t m, PostBuild t m) => Text -> Dynamic t SpinState -> m () -> m (Event t ()) Source #

Types