Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Some bootstrap assets and functionality.
Synopsis
- data BootstrapVersion
- bootstrapPage :: Page
- bootstrap5Page :: 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 ())
- accordionCard :: Bool -> [Attribute] -> Text -> Text -> Text -> Text -> Html () -> Html ()
- accordionCardChecked :: Bool -> Text -> Text -> Text -> Text -> Html () -> Html () -> Html ()
- accordion_ :: Text -> Maybe Text -> [(Text, Html ())] -> Html ()
Documentation
data BootstrapVersion Source #
Instances
Generic BootstrapVersion Source # | |
Defined in Web.Rep.Bootstrap type Rep BootstrapVersion :: Type -> Type # from :: BootstrapVersion -> Rep BootstrapVersion x # to :: Rep BootstrapVersion x -> BootstrapVersion # | |
Show BootstrapVersion Source # | |
Defined in Web.Rep.Bootstrap showsPrec :: Int -> BootstrapVersion -> ShowS # show :: BootstrapVersion -> String # showList :: [BootstrapVersion] -> ShowS # | |
Eq BootstrapVersion Source # | |
Defined in Web.Rep.Bootstrap (==) :: BootstrapVersion -> BootstrapVersion -> Bool # (/=) :: BootstrapVersion -> BootstrapVersion -> Bool # | |
type Rep BootstrapVersion Source # | |
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
:: 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.