Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- modal :: (PostBuild t m, MonadHold t m, MonadFix m, DomBuilder t m) => Event t () -> m a -> m (a, Event t OnClose)
- modal' :: (PostBuild t m, MonadHold t m, MonadFix m, DomBuilder t m) => Event t () -> Event t () -> m a -> m (a, Event t OnClose)
- modalClose :: (PostBuild t m, MonadHold t m, MonadFix m, DomBuilder t m) => Event t () -> m (a, Event t ()) -> m (a, Event t OnClose)
- data OnClose
Documentation
:: (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
.
:: (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.