Merge pull request #12529 from gdoron/master

Add event to submitHandler signatute
This commit is contained in:
Paul van Brenk
2016-11-29 16:58:36 -08:00
committed by GitHub
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -128,9 +128,9 @@ declare namespace JQueryValidation
*/
showErrors?: (errorMap: ErrorDictionary, errorList: ErrorListItem[]) => void;
/**
* Callback for handling the actual submit when the form is valid. Gets the form as the only argument. Replaces the default submit. The right place to submit a form via Ajax after it is validated.
* Callback for handling the actual submit when the form is valid. Gets the form and the event object. Replaces the default submit. The right place to submit a form via Ajax after it is validated.
*/
submitHandler?: (form: HTMLFormElement) => void;
submitHandler?: (form: HTMLFormElement, event?: JQueryEventObject) => void;
/**
* String or Function. If specified, the error label is displayed to show a valid element. If a String is given, it is added as a class to the label. If a Function is given, it is called with the label (as a jQuery object) and the validated input (as a DOM element). The label can be used to add a text like "ok!".
*/
+3 -1
View File
@@ -420,8 +420,10 @@ interface JQuery {
/**
* Close a modal programatically
*
* @name options the lean modal options
*/
closeModal(): void;
closeModal(options?: Materialize.LeanModalOptions): void;
/**
* Parallax is an effect where the background content or image in this case, is moved at a different speed than the foreground content while scrolling.