| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
FlexTask.FormHelpers
Description
Helpers for commonly used form patterns.
Synopsis
- anonymousRadioButtons :: Integral i => Alignment -> FieldSettings FlexForm -> i -> Rendered Widget
- labeledRadioButtons :: Alignment -> FieldSettings FlexForm -> [SomeMessage FlexForm] -> Rendered Widget
- labeledCheckboxes :: Alignment -> FieldSettings FlexForm -> [String] -> Rendered Widget
Documentation
anonymousRadioButtons Source #
Arguments
| :: Integral i | |
| => Alignment | vertical or horizontal |
| -> FieldSettings FlexForm | heading label, attributes, etc. |
| -> i | the amount of options to provide |
| -> Rendered Widget |
A single choice radio button field. Buttons are labeled with just their index number.
Arguments
| :: Alignment | vertical or horizontal |
| -> FieldSettings FlexForm | heading label, attributes, etc. |
| -> [SomeMessage FlexForm] | individual option labels |
| -> Rendered Widget |
A single choice radio button field. Buttons are labeled with the given multilingual labels.
Arguments
| :: Alignment | vertical or horizontal |
| -> FieldSettings FlexForm | FieldSettings of the header label: attributes, label text, etc. |
| -> [String] | individual option labels |
| -> Rendered Widget |
A multiple choice checkbox field. Checkboxes are labeled with their index number and the provided (monolingual) labels.