| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
React.Flux.Addons.Bootstrap
Description
Bindings to React-Bootstrap. To use this
binding, include the browser-global version of react-bootstrap.js so that window.ReactBootstrap
is defined. You can then use bootstrap_ inside your rendering functions.
- bootstrap_ :: String -> [PropertyOrHandler eventHandler] -> ReactElementM eventHandler a -> ReactElementM eventHandler a
Documentation
Arguments
| :: String | The component name. Uses |
| -> [PropertyOrHandler eventHandler] | Properties and callbacks to pass to the ReactBootstrap class. You can use |
| -> ReactElementM eventHandler a | The child or children of the component. |
| -> ReactElementM eventHandler a |
A bootstrap component. For example,
bootstrap_ "Alert" [ "bsStyle" $= "danger"
, callback "onDismiss" (const $ dispatch CloseAlert)
] $
p_ "Hello, World!"