Fable.Modulo


FormFieldModel<'f, 't> Type

Wrapper type needed to unify the field types

Union cases

Union case Description

Checkbox FormCheckboxModel<'f>

Full Usage: Checkbox FormCheckboxModel<'f>

Parameters:
Item : FormCheckboxModel<'f>

Input FormInputModel<'f, 't>

Full Usage: Input FormInputModel<'f, 't>

Parameters:
Item : FormInputModel<'f, 't>

Select FormSelectModel<'f, 't>

Full Usage: Select FormSelectModel<'f, 't>

Parameters:
Item : FormSelectModel<'f, 't>

Instance members

Instance member Description

this.Error

Full Usage: this.Error

Returns: string option

The underlying field's error value (if any)

Returns: string option

this.UpdateForm

Full Usage: this.UpdateForm

Parameters:
    form : 'f

Returns: 'f

Update the parent form with this item's value

form : 'f
Returns: 'f

this.Validate

Full Usage: this.Validate

Parameters:
    form : 'f
    value : Result<'t, string>

Returns: Result<'t, string>

Validate the given value against the given form using this field's validator if defined

form : 'f
value : Result<'t, string>
Returns: Result<'t, string>

this.Value

Full Usage: this.Value

Returns: Result<'t, string>

The underlying field's value

Returns: Result<'t, string>