bulmex-3.0.0: Reflex infused with bulma (css)

Safe HaskellNone
LanguageHaskell2010

Reflex.Bulmex.Modal

Description

A modal dialogue, eg pop up, for example to confirm an action. Puts code behinds bulma's modal styling: https://bulma.io/documentation/components/modal/

Synopsis

Documentation

modal Source #

Arguments

:: (PostBuild t m, MonadHold t m, MonadFix m, DomBuilder t m) 
=> Event t ()

open trigger

-> m a

modal body

-> m (a, Event t OnClose) 

A modal that opens on event and has a cross to close it. m a dictates what's inside the modal. You probably want to use a box.

modal' Source #

Arguments

:: (PostBuild t m, MonadHold t m, MonadFix m, DomBuilder t m) 
=> Event t ()

close trigger

-> Event t ()

open trigger

-> m a

modal body

-> m (a, Event t OnClose) 

A modal that can be opened and closed with events. It also has a cross to close with.

modalClose Source #

Arguments

:: (PostBuild t m, MonadHold t m, MonadFix m, DomBuilder t m) 
=> Event t ()

open trigger

-> m (a, Event t ())

body + close trigger result

-> m (a, Event t OnClose) 

The most generic modal, It receives an open event. And the inner monad can indicate when to close with a closeEvent.

data OnClose Source #

An incation that an event came from closing a modal