| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Reflex.Material.Button
- mdButton :: MonadWidget t m => Dynamic t MdButton -> m () -> m (Event t ())
- data MdButton = MdButton {}
- mdLink :: MonadWidget t m => Text -> m () -> m (Event t ())
- mdLinkClickEvent :: (TriggerEvent t1 m, MonadJSM m, IsElement (RawElement * d)) => Element * er d t -> m (Event t1 ())
Documentation
mdButton :: MonadWidget t m => Dynamic t MdButton -> m () -> m (Event t ()) #
Buttons are for clicking
Data structure describing options available for buttons. The typical way of using this data structure is to use the default instance and modify it using the various MdHasXYZ type classes. For instance:
huge $ inverted $ blue def
Constructors
| MdButton | |
Fields
| |
Arguments
| :: MonadWidget t m | |
| => Text | CSS class to apply |
| -> m () | Contents |
| -> m (Event t ()) | Click event |
Anchor element with href attribute (for styling).
mdLinkClickEvent :: (TriggerEvent t1 m, MonadJSM m, IsElement (RawElement * d)) => Element * er d t -> m (Event t1 ()) #
Click event with default action prevented.