Class

ValidatableOptions

ValidatableOptions()

Validatable Options generic for VPOptions

Constructor

# new ValidatableOptions()

Base generic ValidatableOption class all VPOption instances extend from. Implements the generic VPOptions interface and applies standard defaults sourced from the DOM bindings or statically defined.

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

Properties:
Name Type Attributes Default Description
Lifecycle.Valid.Message string <optional>
''

vp-valid

Lifecycle.Invalid.Message string <optional>
''

vp-invalid

ErrorClassName string <optional>
'-isError'

vp-error-class

ValidClassName string <optional>
'-isValid'

vp-valid-class

MessageClassName string <optional>
'VPMessage'

vp-msg-class

MessageContainerClassName string <optional>
'VPMessages'

vp-msgs-class

MessagePos string <optional>
VerticalPosition.bottom

vp-msg-top || vp-msg-bottom

ScrollTo boolean <optional>
false

vp-scroll

MessageAnchor HTMLElement | null <optional>
ScrollAnchor HTMLElement | null <optional>
Lifecycle ValidationLifecycle <optional>
ScrollOptions ScrollIntoViewOptions | boolean <optional>
See:
  • VPOptions For more information on properties defined

View Source models/VPOptions/ValidatableOptions.ts, line 29

Classes

ValidatableOptions