Class

FieldOptions

FieldOptions()

Field Options instance for VPField

Constructor

# new FieldOptions()

Internally created VPField options instance, implementing the VPFieldOptions interface w/ standard defaults applied dynamically from the DOM bindings or statically if undefined.

NOTE: See property descriptions for DOM binding attribute names, if implemented

Properties:
Name Type Attributes Default Description
Notify boolean <optional>
true

vp-notify

ShowFieldRuleErrors boolean <optional>
false

vp-field-errors

ShowCustomRuleErrors boolean <optional>
true

vp-custom-errors

ValidateLazyCustomRules boolean <optional>
true

vp-lazy-custom || vp-lazy

ValidateLazyFieldFields boolean <optional>
true

vp-lazy-fields || vp-lazy

ValidateAsync boolean <optional>
false

vp-async

ValidateAsyncResolved boolean <optional>
true

vp-await

DirtyOn.blur boolean <optional>
false

vp-dirty-blur

DirtyOn.input boolean <optional>
true

vp-dirty-input

DirtyOn.change boolean <optional>
false

vp-dirty-change

DirtyOn.mouseleave boolean <optional>
false

vp-dirty-mouseleave

FormatOn.blur boolean <optional>
false

vp-format-blur

FormatOn.input boolean <optional>
true

vp-format-input

FormatOn.change boolean <optional>
false

vp-format-change

FormatOn.mouseleave boolean <optional>
false

vp-format-mouseleave

ValidateOn.blur boolean <optional>
true

vp-blur || vp-validate-blur

ValidateOn.input boolean <optional>
false

vp-input || vp-validate-input

ValidateOn.change boolean <optional>
false

vp-change || vp-validate-change

ValidateOn.mouseleave boolean <optional>
false

vp-mouseleave || vp-validate-mouseleave

ForceRules boolean <optional>
false
InputRules HTMLValidationRules <optional>
{}
CustomRules Array.<CustomValidationRule> <optional>
[]
InputFormatter InputFormatters <optional>
{}
PrimaryInput null | ValidInput <optional>
null
PrimaryInputIndex number <optional>
0
PrimaryInputType null | string <optional>
null
InputTypes Array.<string> <optional>
['select','input','textarea']
See:

View Source models/VPOptions/FieldOptions.ts, line 44

Extends

Classes

FieldOptions