web-rep-0.3.2: representations of a web page

Safe HaskellNone
LanguageHaskell2010

Web.Page.Bootstrap

Description

Some bootstrap assets and functionality.

Synopsis

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

divClass_ :: Text -> Html () -> Html () Source #

wrap some html with a classed div

accordion Source #

Arguments

:: 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

accordionCard :: Bool -> [Attribute] -> Text -> Text -> Text -> Text -> Html () -> Html () Source #

A Html object based on the bootstrap accordion card concept.

accordionCardChecked :: Bool -> Text -> Text -> Text -> Text -> Html () -> Html () -> Html () Source #

A bootstrap accordion card attached to a checkbox.

accordion_ :: Text -> Maybe Text -> [(Text, Html ())] -> Html () Source #

This version of accordion runs a local state for naming, and will cause name clashes if the prefix is not unique.