flex-tasks
Safe HaskellNone
LanguageHaskell2010

FlexTask.FormHelpers

Description

Helpers for commonly used form patterns.

Synopsis

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.

labeledRadioButtons Source #

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.

labeledCheckboxes Source #

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.