The DOM element associated with the field, or null
if there's no associated element.
Optional
istrue
if this field has associated errors, or false
otherwise.
Associates the field with the DOM element.
Scroll to the element that is referenced by an invalid field. Scrolls the field element's ancestor containers such that the field element is visible to the user.
The field ref
should be populated with an Element
reference.
Optional
index: numberThe zero-based index of an invalid field to scroll to. A negative index can be used, indicating an
offset from the end of the sequence. scrollToError(-1)
scroll to the last invalid field. The visual order of
fields is used (by default left-to-right and top-to-bottom).
Optional
alignToTop: booleanIf true
, the top of the element will be aligned to the top of the visible area of the
scrollable ancestor, otherwise element will be aligned to the bottom of the visible area of the scrollable
ancestor.
The field which is scrolled to, or null
if there's no scroll happening.
Scroll to the element that is referenced by an invalid field. Scrolls the field element's ancestor containers such that the field element is visible to the user.
The field ref
should be populated with an Element
reference.
Optional
index: numberThe zero-based index of an invalid field to scroll to. A negative index can be used, indicating an
offset from the end of the sequence. scrollToError(-1)
scroll to the last invalid field. The visual order of
fields is used (by default left-to-right and top-to-bottom).
Optional
options: ScrollToErrorOptionsThe scroll options.
The field which is scrolled to, or null
if there's no scroll happening.
The plugin added to fields by the scrollToErrorPlugin.