layout-bootstrap-0.2.2: Template and widgets for Bootstrap2 to use with Text.Blaze.Html5

Safe HaskellSafe-Infered

Layout.Bootstrap.Widgets

Contents

Description

Wrap your Html in bootstrap-styled containers.

Synopsis

Forms

form :: Text -> Text -> Html -> HtmlSource

Form wrapper.

formH :: Text -> Html -> HtmlSource

Bootstrap-horizontal form.

formV :: Text -> Html -> HtmlSource

Bootstrap-vertical form.

fieldset :: Text -> Html -> HtmlSource

Fieldset label.

formActions :: Html -> HtmlSource

Form button bar.

Text input

data Input Source

Form field for one-line text entry.

Constructors

Input 

Fields

title :: !Text
 
placeholder :: !Text
 
help :: !Text
 
value :: !Text
 
errors :: !Bool
 

Instances

simpleInput :: Text -> InputSource

Text field with only name provided. Good to start with record overrides. Needs toHtml when inserted into Html tree.

input :: Text -> Text -> Text -> HtmlSource

Html constructor for just needed parameters.

input' :: Text -> Text -> Text -> Text -> Bool -> HtmlSource

Html constructor for all Input parameters.

Buttons

button :: Text -> [Text] -> Html -> HtmlSource

Generic button element. Provide list of css classes to be added. Hook JS actions to class names.

buttonGroup :: Html -> HtmlSource

Button container. Put buttons inside.

buttonBar :: Html -> HtmlSource

Toolbar-like groups of buttons. Put buttonGroups inside.

Dropdown Menu

buttonDD :: Text -> Html -> HtmlSource

Button with a dropdown menu.

buttonSDD :: Text -> Html -> HtmlSource

More menu-like button. Has a caret in a split section.

Layout

section :: Text -> Html -> HtmlSource

ID-marked navigation section.

row :: Html -> HtmlSource

Fixed-width container.

rowF :: Html -> HtmlSource

Percent-width container.

span :: Int -> Html -> HtmlSource

Content wrapper to place inside a container.

offspan :: Int -> Int -> Html -> HtmlSource

Cell with an offset (fixed row only).

Base CSS

blockQuote_ :: Text -> Text -> Html -> HtmlSource

Dedicated place for some great quotes.

Icons

icon :: Text -> HtmlSource

Default glyphs.

iconW :: Text -> HtmlSource

White glyphs.

Misc

well :: Html -> HtmlSource

An area with a rounded border.

closeIcon :: HtmlSource

Tiny cross element for notification blocks.