Frame.GUI
Description
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).
Instances
class Composable a whereSource
Instances
Contains various 'block level' elements
Constructors
| 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 |
Instances
Forms
data FormElement Source
Constructors
| 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 |
Instances
type FormValue = WrapperTypeSource
Form values are just wrapped types