Safe Haskell | None |
---|---|
Language | Haskell2010 |
A modal dialogue, for example to confirm an action. Makes bulma's modal styling work
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.