web-rep-0.10.0: representations of a web page
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Rep.Bootstrap

Description

Some bootstrap assets and functionality.

Synopsis

Documentation

data BootstrapVersion Source #

Constructors

Boot4 
Boot5 

Instances

Instances details
Generic BootstrapVersion Source # 
Instance details

Defined in Web.Rep.Bootstrap

Associated Types

type Rep BootstrapVersion :: Type -> Type #

Show BootstrapVersion Source # 
Instance details

Defined in Web.Rep.Bootstrap

Eq BootstrapVersion Source # 
Instance details

Defined in Web.Rep.Bootstrap

type Rep BootstrapVersion Source # 
Instance details

Defined in Web.Rep.Bootstrap

type Rep BootstrapVersion = D1 ('MetaData "BootstrapVersion" "Web.Rep.Bootstrap" "web-rep-0.10.0-14Ea0acHNZAIpwuRPiHk6A" 'False) (C1 ('MetaCons "Boot4" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Boot5" 'PrefixI 'False) (U1 :: Type -> Type))

bootstrapPage :: Page Source #

A page containing all the bootstrap needs for a web page.

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