A subset of the GUI required to build a useful view
GUI
A generic GUI whose various instances define how it should be output (e.g. Show outputs HTML).
class Composable a whereSource
Contains various 'block level' elements
Panel [Container] [Class] | Panel matches up with a div when output as HTML |
Paragraph [Element] [Class] | Paragraphs can only only contain elements |
Code String | Code |
Quote [Container] | Quote |
Header Int [Element] | Header (int is size) |
List [[Container]] [Class] | Lists contain list items |
NumList [[Container]] [Class] | Lists contain list items |
Form [FormElement] [Class] | A form |
Error [Container] | Error pane |
Line | |
Empty |
Forms
data FormElement Source
FormGroup [FormElement] Label | For grouping elements |
TextField FieldName Label FormValue (Maybe Int) (Maybe Container) | Standard text box |
HiddenField FieldName FormValue | Hidden field |
TextArea FieldName Label FormValue (Maybe Container) | Larger text box |
Button FieldName FormValue | Submit button |
ButtonLink Label URL | Special textual button |
type FormValue = WrapperTypeSource
Form values are just wrapped types