object
Class constructor.
const elementsExample = [
{
id: 'text-input',
valid: false,
error: 'Please fill out this field',
label: 'Input Label',
element: <Element />,
},
{...},
];
new ErrorSummary(example, 'This is a heading message')
Class constructor.
Class constructor.
Generate Node to hold list of invalid inputs
Generate list of anchors
Generate an item for the error summary
Generate anchor element to point at invalid input
Get the data attributes from the formElement. If the form is being set up declaratively, this method is used to extract the data attributes from the DOM.
Event Handler
Form validation Validates every element in the form and creates input objects for the error summary
Initialise form component.
Input validation Conditions for input validation
Class constructor.