Safe Haskell | None |
---|---|
Language | Haskell2010 |
some bootstrap assets
Synopsis
- bootstrapPage :: Page
- cardify :: (Html (), [Attribute]) -> Maybe Text -> (Html (), [Attribute]) -> Html ()
- divClass_ :: Text -> Html () -> Html ()
- accordion :: MonadState Int m => Text -> Maybe Text -> [(Text, Html ())] -> m (Html ())
- accordionChecked :: MonadState Int m => Text -> [(Text, Html (), Html ())] -> m (Html ())
- accordionCardChecked :: Bool -> Text -> Text -> Text -> Text -> Html () -> Html () -> Html ()
- accordion_ :: Text -> Maybe Text -> [(Text, Html ())] -> Html ()
Documentation
bootstrapPage :: Page Source #
A page containing all the bootstrap needs for a web page.
cardify :: (Html (), [Attribute]) -> Maybe Text -> (Html (), [Attribute]) -> Html () Source #
wrap some Html with the bootstrap card class
:: MonadState Int m | |
=> Text | |
-> Maybe Text | name prefix. This is needed because an Int doesn't seem to be a valid name. |
-> [(Text, Html ())] | card title |
-> m (Html ()) | title, html tuple for each item in the accordion. |
create a bootstrapped accordian class
accordionChecked :: MonadState Int m => Text -> [(Text, Html (), Html ())] -> m (Html ()) Source #
create a bootstrapped accordian class