Fable.Modulo


FormFieldModel Module

Functions related to the FormFieldModel type

Functions and values

Function or value Description

label item

Full Usage: label item

Parameters:
Returns: string option

Extract the label

item : FormFieldModel<'f, 't>
Returns: string option

layout x

Full Usage: layout x

Parameters:
Returns: FormFieldLayout

Extract the layout options

x : FormFieldModel<'f, 't>
Returns: FormFieldLayout

placeholder item

Full Usage: placeholder item

Parameters:
Returns: string option

Extract the placeholder

item : FormFieldModel<'f, 't>
Returns: string option

replaceSelectValues values x

Full Usage: replaceSelectValues values x

Parameters:
Returns: FormSelectModel<'d, 'a> -> FormSelectModel<'d, 'a>

Set the values if the underlying is of kind 'Select

values : seq<'a>
x : FormFieldModel<'b, 'c>
Returns: FormSelectModel<'d, 'a> -> FormSelectModel<'d, 'a>

selectValues x

Full Usage: selectValues x

Parameters:
Returns: 'b[]

Get the values if the underlying is of kind 'Select

x : FormFieldModel<'a, 'b>
Returns: 'b[]

text x

Full Usage: text x

Parameters:
Returns: string

Get the text if the underlying is of kind 'Input'

x : FormFieldModel<'a, 'b>
Returns: string

tooltip item

Full Usage: tooltip item

Parameters:
Returns: TooltipKind

Extract the tooltip text

item : FormFieldModel<'f, 't>
Returns: TooltipKind

update v field

Full Usage: update v field

Parameters:
Returns: FormFieldModel<'a, 't>

Update the underlying field's value

v : Result<'t, string>
field : FormFieldModel<'a, 't>
Returns: FormFieldModel<'a, 't>

updateForm form field

Full Usage: updateForm form field

Parameters:
Returns: 'a

Update the form with the new field

form : 'a
field : FormFieldModel<'a, 'b>
Returns: 'a

withDisabled t x

Full Usage: withDisabled t x

Parameters:
Returns: FormFieldModel<'a, 'b>

Disable the field

t : bool
x : FormFieldModel<'a, 'b>
Returns: FormFieldModel<'a, 'b>

withLabel l x

Full Usage: withLabel l x

Parameters:
Returns: FormFieldModel<'a, 'b>

Set the label

l : string
x : FormFieldModel<'a, 'b>
Returns: FormFieldModel<'a, 'b>

withPlaceholder t x

Full Usage: withPlaceholder t x

Parameters:
Returns: FormFieldModel<'a, 'b>

Set the placeholder

t : string
x : FormFieldModel<'a, 'b>
Returns: FormFieldModel<'a, 'b>

withRelativeSize t x

Full Usage: withRelativeSize t x

Parameters:
Returns: FormFieldModel<'a, 'b>

Set the relative size

t : int
x : FormFieldModel<'a, 'b>
Returns: FormFieldModel<'a, 'b>

withTooltip t x

Full Usage: withTooltip t x

Parameters:
Returns: FormFieldModel<'a, 'b>

Set the tooltip text

t : TooltipKind
x : FormFieldModel<'a, 'b>
Returns: FormFieldModel<'a, 'b>

withValidator f x

Full Usage: withValidator f x

Parameters:
Returns: FormFieldModel<'a, 'b>

Set the validator

f : 'a -> 'b -> Result<'b, string>
x : FormFieldModel<'a, 'b>
Returns: FormFieldModel<'a, 'b>