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
Modules | Description |
Function or value | Description |
Full Usage:
checkboxField initialValue
Parameters:
Result<bool, string>
Returns: FormCheckboxModel<'f>
Modifiers: inline Type parameters: 'f |
|
Full Usage:
debugForm f
Parameters:
'f
Returns: (string * string) list
Modifiers: inline Type parameters: 'f |
|
Full Usage:
field initialValue
Parameters:
Result<'t, string>
Returns: FormFieldModel<'f, 't>
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
field' initialValue fieldLabel
Parameters:
Result<'t, string>
fieldLabel : string
Returns: FormFieldModel<'f, 't>
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
initForm f
Parameters:
'f
Returns: 'f
Modifiers: inline Type parameters: 'f |
|
Full Usage:
inputField initialValue
Parameters:
Result<'t, string>
Returns: FormInputModel<'f, 't> option
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
select initialValue values labelFunction
Parameters:
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
|
Full Usage:
select' initialValue values labelFunction fieldLabel
Parameters:
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
|
Full Usage:
selectRaw initialValue values labelFunction
Parameters:
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
|