import { Bind } from '..'; export interface Form extends Bind { /** * Is it currently possible to submit the form? */ canSubmitForm: boolean; /** * Has the form currently any validation errors */ hasErrors: boolean; /** * Has the form the initial values or has it been changed */ hasChanges: boolean; /** * Does the form has a required field that is not filled out? */ hasMissingRequired: boolean; /** * Contains the list of tracked errors by the children components */ allErrors: string[]; /** * The form submits and triggers in all components the save method, which also could cause errors from server methods. * @param {any} evt, The event type is because different ui libraries can cast the original event differently. */ onSubmitForm(evt?: any): void; /** * Clear all validation errors from the children components */ clearAllErrors(): void; /** * Reset all the values to the initial value for the child components */ resetValues(): void; }