Safe Haskell | None |
---|---|
Language | Haskell98 |
- resizeDetector :: MonadWidget t m => m a -> m (Event t (), a)
- resizeDetectorWithStyle :: MonadWidget t m => String -> m a -> m (Event t (), a)
Documentation
resizeDetector :: MonadWidget t m => m a -> m (Event t (), a) Source
A widget that wraps the given widget in a div and fires an event when resized. Adapted from github.commarcjcss-element-queries
resizeDetectorWithStyle Source
:: MonadWidget t m | |
=> String | A css style string. Warning: It should not contain the "position" style attribute. |
-> m a | The embedded widget |
-> m (Event t (), a) | An |