This library contains some operations to generate web pages rendered with Bootstrap version 4.
Author: Michael Hanus
Version: July 2020
bootstrapPage
:: String -> [String] -> [String] -> String -> (String,[HtmlExp]) -> [[HtmlExp]] -> [[HtmlExp]] -> Int -> [HtmlExp] -> [HtmlExp] -> [HtmlExp] -> [HtmlExp] -> HtmlPage
An HTML page rendered with bootstrap with a fixed top navigation bar. |
bootstrapPage2
:: String -> [String] -> [String] -> String -> (String,[HtmlExp]) -> [(String,[HtmlExp])] -> [(String,[HtmlExp])] -> Int -> [HtmlExp] -> [HtmlExp] -> [HtmlExp] -> [HtmlExp] -> HtmlPage
An HTML page rendered with bootstrap with a fixed top navigation bar and individual classes for the top menu items. |
titledSideMenu
:: String -> [[HtmlExp]] -> [HtmlExp]
Create a side menu containing a title and a list of items: |
primButton
:: String -> ((CgiRef -> String) -> IO HtmlPage) -> HtmlExp
Primary input button. |
primSmButton
:: String -> ((CgiRef -> String) -> IO HtmlPage) -> HtmlExp
Small primary input button. |
scndButton
:: String -> ((CgiRef -> String) -> IO HtmlPage) -> HtmlExp
Secondary input button. |
scndSmButton
:: String -> ((CgiRef -> String) -> IO HtmlPage) -> HtmlExp
Small secondary input button. |
infoButton
:: String -> ((CgiRef -> String) -> IO HtmlPage) -> HtmlExp
Info input button. |
infoSmButton
:: String -> ((CgiRef -> String) -> IO HtmlPage) -> HtmlExp
Small info input button. |
hrefPrimButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a primary button. |
hrefPrimSmButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a small primary button. |
hrefScndButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a secondary button. |
hrefScndSmButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a small secondary button. |
hrefInfoButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as an info button. |
hrefInfoSmButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a small secondary button. |
hrefSuccButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a success button. |
hrefSuccSmButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a small success button. |
hrefWarnButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a warning button. |
hrefWarnSmButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a small warning button. |
hrefDangButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a danger button. |
hrefDangSmButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a small danger button. |
hrefLightButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a light button. |
hrefLightSmButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a small light button. |
hrefDarkButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a dark button. |
hrefDarkSmButton
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a small dark button. |
hrefPrimBlock
:: String -> [HtmlExp] -> HtmlExp
|
hrefScndBlock
:: String -> [HtmlExp] -> HtmlExp
|
hrefInfoBlock
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as an info block button. |
hrefPrimSmBlock
:: String -> [HtmlExp] -> HtmlExp
|
hrefScndSmBlock
:: String -> [HtmlExp] -> HtmlExp
|
hrefInfoSmBlock
:: String -> [HtmlExp] -> HtmlExp
|
hrefPrimBadge
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a primary badge. |
hrefScndBadge
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a secondary badge. |
hrefSuccBadge
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a success badge. |
hrefInfoBadge
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as an info badge. |
hrefWarnBadge
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a warning badge. |
hrefDangBadge
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a danger badge. |
hrefLightBadge
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a light badge. |
hrefDarkBadge
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference rendered as a dark badge. |
ehrefPrimBadge
:: String -> [HtmlExp] -> HtmlExp
External hypertext reference rendered as a primary badge. |
ehrefScndBadge
:: String -> [HtmlExp] -> HtmlExp
External hypertext reference rendered as a secondary badge. |
ehrefSuccBadge
:: String -> [HtmlExp] -> HtmlExp
External hypertext reference rendered as a success badge. |
ehrefInfoBadge
:: String -> [HtmlExp] -> HtmlExp
External hypertext reference rendered as an info badge. |
ehrefWarnBadge
:: String -> [HtmlExp] -> HtmlExp
External hypertext reference rendered as a warning badge. |
ehrefDangBadge
:: String -> [HtmlExp] -> HtmlExp
External hypertext reference rendered as a danger badge. |
ehrefLightBadge
:: String -> [HtmlExp] -> HtmlExp
External hypertext reference rendered as a light badge. |
ehrefDarkBadge
:: String -> [HtmlExp] -> HtmlExp
External hypertext reference rendered as a dark badge. |
:: String -> [HtmlExp] -> HtmlExp
Hypertext reference in navigations. |
:: String -> [HtmlExp] -> HtmlExp
Active hypertext reference in navigations. |
:: String -> [HtmlExp] -> HtmlExp
External hypertext reference in navigations. |
ehref
:: String -> [HtmlExp] -> HtmlExp
An external hypertext reference which opens on a new page. |
eTarget
:: HtmlExp -> HtmlExp
Transforms a hypertext reference into an external one which opens on a new page. |
kbdInput
:: [HtmlExp] -> HtmlExp
Render an HTML expression as keyboard or user input. |
An HTML page rendered with bootstrap with a fixed top navigation bar.
|
An HTML page rendered with bootstrap with a fixed top navigation bar and individual classes for the top menu items.
|
Create a side menu containing a title and a list of items: |
Primary input button. |
Small primary input button. |
Secondary input button. |
Small secondary input button. |
Info input button. |
Small info input button. |
Hypertext reference rendered as a primary button. |
Hypertext reference rendered as a small primary button. |
Hypertext reference rendered as a secondary button. |
Hypertext reference rendered as a small secondary button. |
Hypertext reference rendered as an info button. |
Hypertext reference rendered as a small secondary button. |
Hypertext reference rendered as a success button. |
Hypertext reference rendered as a small success button. |
Hypertext reference rendered as a warning button. |
Hypertext reference rendered as a small warning button. |
Hypertext reference rendered as a danger button. |
Hypertext reference rendered as a small danger button. |
Hypertext reference rendered as a light button. |
Hypertext reference rendered as a small light button. |
Hypertext reference rendered as a dark button. |
Hypertext reference rendered as a small dark button. |
|
|
Hypertext reference rendered as an info block button. |
|
|
|
Hypertext reference rendered as a primary badge. |
Hypertext reference rendered as a secondary badge. |
Hypertext reference rendered as a success badge. |
Hypertext reference rendered as an info badge. |
Hypertext reference rendered as a warning badge. |
Hypertext reference rendered as a danger badge. |
Hypertext reference rendered as a light badge. |
Hypertext reference rendered as a dark badge. |
External hypertext reference rendered as a primary badge. |
External hypertext reference rendered as a secondary badge. |
External hypertext reference rendered as a success badge. |
External hypertext reference rendered as an info badge. |
External hypertext reference rendered as a warning badge. |
External hypertext reference rendered as a danger badge. |
External hypertext reference rendered as a light badge. |
External hypertext reference rendered as a dark badge. |
Transforms a hypertext reference into an external one
which opens on a new page.
Basically, the attribute
|