Functions related to the FormSelectModel type
Function or value | Description |
Full Usage:
create initialValue availableValues labelForValue updater
Parameters:
Result<'t, string>
availableValues : seq<'t>
labelForValue : 't -> string
updater : FormSelectModel<'f, 't> -> 'f -> 'f
Returns: FormSelectModel<'f, 't>
Modifiers: inline Type parameters: 'f, 't |
If the backing type is not an option, an empty choice is inserted at the beginning of the list.The default KeyFunction is JSON.stringify.
|
Full Usage:
createOfDU initialValue duType updater
Parameters:
Result<'t, string>
duType : Type
updater : FormSelectModel<'f, 't> -> 'f -> 'f
Returns: FormSelectModel<'f, 't>
Modifiers: inline Type parameters: 'f, 't |
![]() ![]() ![]() ![]() ![]() ![]() Create a FormSelectModel object using the cases from the given discriminated union. Currently only simple discriminated unions are supported (e.g. plain cases without data)
|
Full Usage:
update value item
Parameters:
Result<'t, string>
item : FormSelectModel<'f, 't>
Returns: FormSelectModel<'f, 't>
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
withDisabled x item
Parameters:
bool
item : FormSelectModel<'a, 'b>
Returns: FormSelectModel<'a, 'b>
|
|
Full Usage:
withEmptyErrorMessage error item
Parameters:
string
item : FormSelectModel<'a, 'b>
Returns: FormSelectModel<'a, 'b>
|
|
Full Usage:
withEmptySelection add item
Parameters:
bool
item : FormSelectModel<'a, 'b>
Returns: FormSelectModel<'a, 'b>
|
|
Full Usage:
withKeyFunction f item
Parameters:
'a -> string
item : FormSelectModel<'b, 'a>
Returns: FormSelectModel<'b, 'a>
|
|
Full Usage:
withLabel label item
Parameters:
string
item : FormSelectModel<'a, 'b>
Returns: FormSelectModel<'a, 'b>
|
|
Full Usage:
withPlaceholder placeholder item
Parameters:
string
item : FormSelectModel<'a, 'b>
Returns: FormSelectModel<'a, 'b>
|
|
Full Usage:
withRelativeSize s item
Parameters:
int
item : FormSelectModel<'a, 'b>
Returns: FormSelectModel<'a, 'b>
|
|
Full Usage:
withTooltip v item
Parameters:
TooltipKind
item : FormSelectModel<'a, 'b>
Returns: FormSelectModel<'a, 'b>
|
|
Full Usage:
withTooltipText text item
Parameters:
string
item : FormSelectModel<'a, 'b>
Returns: FormSelectModel<'a, 'b>
|
|
Full Usage:
withValidator validator item
Parameters:
'a -> 'b -> Result<'b, string>
item : FormSelectModel<'a, 'b>
Returns: FormSelectModel<'a, 'b>
|
|
Full Usage:
withValueLabel f item
Parameters:
'a -> string
item : FormSelectModel<'b, 'a>
Returns: FormSelectModel<'b, 'a>
|
|
Full Usage:
withValues values item
Parameters:
seq<'a>
item : FormSelectModel<'b, 'a>
Returns: FormSelectModel<'b, 'a>
|
|