forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.are-you-sure.d.ts
34 lines (25 loc) · 975 Bytes
/
jquery.are-you-sure.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Type definitions for jquery.are-you-sure.js
// Project: https://github.com/codedance/jquery.AreYouSure
// Definitions by: Jon Egerton <https://github.com/jonegerton>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
/**Options available to control dirty form checking*/
interface AreYouSureOptions {
/**Message to show when attempting to quit a dirty form without saving*/
message?: string;
/**Class to assign to the form when dirty*/
dirtyClass?: string;
/**Callback when form is found to be dirty - allows control of submit/reset buttons etc*/
change?: Function;
/**Jquery selector to use to find input elements*/
fieldSelector?: string;
/**Make Are-You-Sure "silent" by disabling the warning message*/
silent?: boolean;
}
interface AreYouSure {
(): JQuery;
(options: AreYouSureOptions): JQuery;
}
interface JQuery {
areYouSure: AreYouSure;
}