Functions related to the FormInputModel type
Function or value | Description |
Full Usage:
boolField initialValue updater
Parameters:
Result<bool, string>
updater : FormInputModel<'a, bool> -> 'a -> 'a
Returns: FormInputModel<'a, bool>
|
|
Full Usage:
boolOptionField initialValue updater
Parameters:
Result<bool option, string>
updater : FormInputModel<'a, bool option> -> 'a -> 'a
Returns: FormInputModel<'a, bool option>
|
|
Full Usage:
create text value parser formatter updater
Parameters:
string
value : Result<'t, string>
parser : string -> Result<'t, string>
formatter : 't -> string
updater : FormInputModel<'f, 't> -> 'f -> 'f
Returns: FormInputModel<'f, 't>
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
create' value parser formatter updater
Parameters:
Result<'t, string>
parser : string -> Result<'t, string>
formatter : 't -> string
updater : FormInputModel<'f, 't> -> 'f -> 'f
Returns: FormInputModel<'f, 't>
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
dateField initialValue updater
Parameters:
Result<DateTime, string>
updater : FormInputModel<'f, DateTime> -> 'f -> 'f
Returns: FormInputModel<'f, DateTime>
|
|
Full Usage:
dateOptionField initialValue updater
Parameters:
Result<DateTime option, string>
updater : FormInputModel<'a, DateTime option> -> 'a -> 'a
Returns: FormInputModel<'a, DateTime option>
|
|
Full Usage:
dateTimeField initialValue updater
Parameters:
Result<DateTimeOffset, string>
updater : FormInputModel<'a, DateTimeOffset> -> 'a -> 'a
Returns: FormInputModel<'a, DateTimeOffset>
|
|
Full Usage:
dateTimeOptionField initialValue updater
Parameters:
Result<DateTimeOffset option, string>
updater : FormInputModel<'a, DateTimeOffset option> -> 'a -> 'a
Returns: FormInputModel<'a, DateTimeOffset option>
|
|
Full Usage:
decimalField initialValue updater
Parameters:
Result<decimal, string>
updater : FormInputModel<'a, decimal> -> 'a -> 'a
Returns: FormInputModel<'a, decimal>
|
|
Full Usage:
decimalOptionField initialValue updater
Parameters:
Result<decimal option, string>
updater : FormInputModel<'a, decimal option> -> 'a -> 'a
Returns: FormInputModel<'a, decimal option>
|
|
Full Usage:
floatField initialValue updater
Parameters:
Result<float, string>
updater : FormInputModel<'a, float> -> 'a -> 'a
Returns: FormInputModel<'a, float>
|
|
Full Usage:
floatOptionField initialValue updater
Parameters:
Result<float option, string>
updater : FormInputModel<'a, float option> -> 'a -> 'a
Returns: FormInputModel<'a, float option>
|
|
Full Usage:
intField initialValue updater
Parameters:
Result<int, string>
updater : FormInputModel<'a, int> -> 'a -> 'a
Returns: FormInputModel<'a, int>
|
|
Full Usage:
intOptionField initialValue updater
Parameters:
Result<int option, string>
updater : FormInputModel<'a, int option> -> 'a -> 'a
Returns: FormInputModel<'a, int option>
|
|
Full Usage:
stringField initialValue updater
Parameters:
Result<string, string>
updater : FormInputModel<'a, string> -> 'a -> 'a
Returns: FormInputModel<'a, string>
|
Example
|
Full Usage:
stringOptionField initialValue updater
Parameters:
Result<string option, string>
updater : FormInputModel<'a, string option> -> 'a -> 'a
Returns: FormInputModel<'a, string option>
|
Example
|
Full Usage:
timeSpanField initialValue updater
Parameters:
Result<TimeSpan, string>
updater : FormInputModel<'a, TimeSpan> -> 'a -> 'a
Returns: FormInputModel<'a, TimeSpan>
|
|
Full Usage:
timeSpanOptionField initialValue updater
Parameters:
Result<TimeSpan option, string>
updater : FormInputModel<'a, TimeSpan option> -> 'a -> 'a
Returns: FormInputModel<'a, TimeSpan option>
|
|
Full Usage:
updateForm form item text
Parameters:
'f
item : FormInputModel<'f, 't>
text : string
Returns: 'f
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
updateText text item
Parameters:
string
item : FormInputModel<'f, 't>
Returns: FormInputModel<'f, 't>
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
updateValue value item
Parameters:
Result<'t, string>
item : FormInputModel<'f, 't>
Returns: FormInputModel<'f, 't>
Modifiers: inline Type parameters: 'f, 't |
![]() ![]() ![]() ![]() ![]() ![]() Update the field's value. The field's text is generated by the formatter. The validation function is not called.
|
Full Usage:
withDisabled x item
Parameters:
bool
item : FormInputModel<'a, 'b>
Returns: FormInputModel<'a, 'b>
|
|
Full Usage:
withFormatter formatter item
Parameters:
'a -> string
item : FormInputModel<'b, 'a>
Returns: FormInputModel<'b, 'a>
|
|
Full Usage:
withLabel label item
Parameters:
string
item : FormInputModel<'a, 'b>
Returns: FormInputModel<'a, 'b>
|
|
Full Usage:
withPlaceholder placeholder item
Parameters:
string
item : FormInputModel<'a, 'b>
Returns: FormInputModel<'a, 'b>
|
|
Full Usage:
withRelativeSize s item
Parameters:
int
item : FormInputModel<'a, 'b>
Returns: FormInputModel<'a, 'b>
|
|
Full Usage:
withTooltip v item
Parameters:
TooltipKind
item : FormInputModel<'a, 'b>
Returns: FormInputModel<'a, 'b>
|
|
Full Usage:
withTooltipText text item
Parameters:
string
item : FormInputModel<'a, 'b>
Returns: FormInputModel<'a, 'b>
|
|
Full Usage:
withValidator validator item
Parameters:
'a -> 'b -> Result<'b, string>
item : FormInputModel<'a, 'b>
Returns: FormInputModel<'a, 'b>
|
|