ContentsIndex
Framework.Forms.HTMLTypes
Synopsis
data HTMLTag
= Tag {
tagName :: String
tagAttrs :: [FormVar]
tagContent :: HTML
mayCollapse :: Bool
}
| Text String
| Translatable String
type HTML = [HTMLTag]
class Widget w where
type WContent w
html :: w -> String -> String -> HTMLTag
wRead :: String -> WContent w
Documentation
data HTMLTag
Constructors
Tag
tagName :: String
tagAttrs :: [FormVar]
tagContent :: HTML
mayCollapse :: BoolMay we collapse tag></tag> to <tag/ ?
Text String
Translatable String
type HTML = [HTMLTag]
class Widget w where
Types of this class represent HTML widgets
Associated Types
type WContent w
Type of widget content; not used at the moment.
Methods
html
:: wA widget
-> StringWidget's html "name" attribute
-> StringValue of widget
-> HTMLTag
Generate HTML for widget
wRead :: String -> WContent w
Read widget's value from string. Not used yet.
show/hide Instances
Produced by Haddock version 2.4.2