Fable.Modulo


Auto Module

This module aims to reduce the form model's boilerplate by reflection. Currently only forms represented by plain records of "FormFieldModel" ("input" elements) are supported

Nested modules

Modules Description

View

Functions and values

Function or value Description

checkboxField initialValue

Full Usage: checkboxField initialValue

Parameters:
    initialValue : Result<bool, string>

Returns: FormCheckboxModel<'f>
Modifiers: inline
Type parameters: 'f

Build a FormInputModel automatically given the initial value

initialValue : Result<bool, string>
Returns: FormCheckboxModel<'f>

debugForm f

Full Usage: debugForm f

Parameters:
    f : 'f

Returns: (string * string) list
Modifiers: inline
Type parameters: 'f
f : 'f
Returns: (string * string) list

field initialValue

Full Usage: field initialValue

Parameters:
    initialValue : Result<'t, string>

Returns: FormFieldModel<'f, 't>
Modifiers: inline
Type parameters: 'f, 't

Build a FormFieldModel automatically given the initial value

initialValue : Result<'t, string>
Returns: FormFieldModel<'f, 't>

field' initialValue fieldLabel

Full Usage: field' initialValue fieldLabel

Parameters:
    initialValue : Result<'t, string>
    fieldLabel : string

Returns: FormFieldModel<'f, 't>
Modifiers: inline
Type parameters: 'f, 't

Build a FormFieldModel automatically given the initial value and the label

initialValue : Result<'t, string>
fieldLabel : string
Returns: FormFieldModel<'f, 't>

initForm f

Full Usage: initForm f

Parameters:
    f : 'f

Returns: 'f
Modifiers: inline
Type parameters: 'f

Initialize the form by attaching an "updater" to each field

f : 'f
Returns: 'f

inputField initialValue

Full Usage: inputField initialValue

Parameters:
    initialValue : Result<'t, string>

Returns: FormInputModel<'f, 't> option
Modifiers: inline
Type parameters: 'f, 't

Build a FormInputModel automatically given the initial value

initialValue : Result<'t, string>
Returns: FormInputModel<'f, 't> option

select initialValue values labelFunction

Full Usage: select initialValue values labelFunction

Parameters:
    initialValue : Result<'t, string>
    values : seq<'t>
    labelFunction : 't -> string

Returns: FormFieldModel<'f, 't>
Modifiers: inline
Type parameters: 'f, 't

Build a FormFieldModel from the given initial value, available choices and value label-generating function

initialValue : Result<'t, string>
values : seq<'t>
labelFunction : 't -> string
Returns: FormFieldModel<'f, 't>

select' initialValue values labelFunction fieldLabel

Full Usage: select' initialValue values labelFunction fieldLabel

Parameters:
    initialValue : Result<'t, string>
    values : seq<'t>
    labelFunction : 't -> string
    fieldLabel : string

Returns: FormFieldModel<'f, 't>
Modifiers: inline
Type parameters: 'f, 't

Build a FormFieldModel from the given initial value, available choices, value label-generating function and the label

initialValue : Result<'t, string>
values : seq<'t>
labelFunction : 't -> string
fieldLabel : string
Returns: FormFieldModel<'f, 't>

selectRaw initialValue values labelFunction

Full Usage: selectRaw initialValue values labelFunction

Parameters:
    initialValue : Result<'t, string>
    values : seq<'t>
    labelFunction : 't -> string

Returns: FormSelectModel<'f, 't>
Modifiers: inline
Type parameters: 'f, 't

Build a FormFieldModel from the given initial value, available choices and value label-generating function

initialValue : Result<'t, string>
values : seq<'t>
labelFunction : 't -> string
Returns: FormSelectModel<'f, 't>