Safe HaskellNone

IHP.View.Types

Synopsis

Documentation

data FormField Source #

Instances

Instances details
ToHtml FormField Source # 
Instance details

Defined in IHP.View.Form

Methods

toHtml :: FormField -> Html Source #

data SubmitButton Source #

Constructors

SubmitButton 

Instances

Instances details
ToHtml SubmitButton Source # 
Instance details

Defined in IHP.View.Form

Methods

toHtml :: SubmitButton -> Html Source #

data FormContext model Source #

Constructors

FormContext 

Fields

data CSSFramework Source #

Render functions to render with bootstrap etc.

We call this functions with the cssFramework passed to have late binding (like from OOP languages)

Constructors

CSSFramework 

Fields

Instances

Instances details
Default CSSFramework Source #

Provides an unstyled CSSFramework

This way we can later add more properties to the CSSFramework without having update all the CSS Frameworks manually

Instance details

Defined in IHP.View.CSSFramework

Methods

def :: CSSFramework #

type HtmlWithContext context = (?context :: context) => Html Source #

type Layout = Html -> Html Source #

A layout is just a function taking a view and returning a new view.

Example: A very basic html layout.

myLayout :: Layout
myLayout view = [hsx|
    <html>
        <body>
            {view}
        </body>
    </html>
|]