Fable.Modulo


SelectBuilder Type

Computation expression used to build a "select" field model

Constructors

Constructor Description

SelectBuilder()

Full Usage: SelectBuilder()

Returns: SelectBuilder
Returns: SelectBuilder

Instance members

Instance member Description

disabled x

Full Usage: disabled x

Parameters:
    x : bool

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

Disable the field

x : bool
Returns: FormSelectModel<'f, 't>

empty_error_message x

Full Usage: empty_error_message x

Parameters:
    x : string

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

The error message to display when no value has been provided

x : string
Returns: FormSelectModel<'f, 't>

empty_selection

Full Usage: empty_selection

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

If provided an empty value is added as the first item

Returns: FormSelectModel<'f, 't>

error x

Full Usage: error x

Parameters:
    x : string

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

Set the underlying initial value of the input field as "Error"

x : string
Returns: FormSelectModel<'f, 't>

key_function x

Full Usage: key_function x

Parameters:
    x : 't -> string

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

Override the default key generator (defaulting to JSON.stringify)

x : 't -> string
Returns: FormSelectModel<'f, 't>

label x

Full Usage: label x

Parameters:
    x : string

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

Set the field's attached label

x : string
Returns: FormSelectModel<'f, 't>

label' x

Full Usage: label' x

Parameters:
    x : string

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

Set the field's attached label and placeholder

x : string
Returns: FormSelectModel<'f, 't>

no_empty_selection

Full Usage: no_empty_selection

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

Don't add an empty value as the first item

Returns: FormSelectModel<'f, 't>

placeholder x

Full Usage: placeholder x

Parameters:
    x : string

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

Set the field's placeholder text

x : string
Returns: FormSelectModel<'f, 't>

raw_value x

Full Usage: raw_value x

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

Set the underlying initial value of the input field

x : Result<'t, string>
Returns: FormSelectModel<'f, 't>

size x

Full Usage: size x

Parameters:
    x : int

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

Set the field's relative size text

x : int
Returns: FormSelectModel<'f, 't>

tooltip

Full Usage: tooltip

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

Set the field's tooltip text

Returns: FormSelectModel<'f, 't>

tooltip x

Full Usage: tooltip x

Parameters:
    x : string

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

Set the field's tooltip text

x : string
Returns: FormSelectModel<'f, 't>

tooltip x

Full Usage: tooltip x

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

Set the field's tooltip text

x : TooltipKind
Returns: FormSelectModel<'f, 't>

validator x

Full Usage: validator x

Parameters:
    x : 'f -> 't -> Result<'t, string>

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

Set the field value's validator function

x : 'f -> 't -> Result<'t, string>
Returns: FormSelectModel<'f, 't>

value x

Full Usage: value x

Parameters:
    x : 't

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

Set the field's initial underlying value

x : 't
Returns: FormSelectModel<'f, 't>

value_label x

Full Usage: value_label x

Parameters:
    x : 't -> string

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

Set the function to produce the displayed text for a given value

x : 't -> string
Returns: FormSelectModel<'f, 't>

values x

Full Usage: values x

Parameters:
    x : seq<'t>

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

Set the field's list of choices

x : seq<'t>
Returns: FormSelectModel<'f, 't>