forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
icheck.d.ts
112 lines (110 loc) · 3.02 KB
/
icheck.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Type definitions for iCheck v0.8
// Project: http://damirfoy.com/iCheck/
// Definitions by: Dániel Tar <https://github.com/qcz>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface ICheckOptions {
/**
* 'checkbox' or 'radio' to style only checkboxes or radio buttons, both by default
*/
handle?: string;
/**
* Base class added to customized checkboxes
*/
checkboxClass?: string;
/**
* Base class added to customized radio buttons
*/
radioClass?: string;
/**
* Class added on checked state (input.checked = true)
*/
checkedClass?: string;
/**
* If not empty, used instead of 'checkedClass' option (checkbox input specific)
*/
checkedCheckboxClass?: string;
/**
* If not empty, used instead of 'checkedClass' option (radio button input specific)
*/
checkedRadioClass?: string;
/**
* If not empty, added as class name on unchecked state (input.checked = false)
*/
uncheckedClass?: string;
/**
* If not empty, used instead of 'uncheckedClass' option (checkbox input specific)
*/
uncheckedCheckboxClass?: string;
/**
* If not empty, used instead of 'uncheckedClass' option (radio button input specific)
*/
uncheckedRadioClass?: string;
/**
* Class added on disabled state (input.disabled = true)
*/
disabledClass?: string;
/**
* If not empty, used instead of 'disabledClass' option (checkbox input specific)
*/
disabledCheckboxClass?: string;
/**
* If not empty, used instead of 'disabledClass' option (radio button input specific)
*/
disabledRadioClass?: string;
/**
* If not empty, added as class name on enabled state (input.disabled = false)
*/
enabledClass?: string;
/**
* If not empty, used instead of 'enabledClass' option (checkbox input specific)
*/
enabledCheckboxClass?: string;
/**
* If not empty, used instead of 'enabledClass' option (radio button input specific)
*/
enabledRadioClass?: string;
/**
* Class added on hover state (pointer is moved onto an input)
*/
hoverClass?: string;
/**
* Class added on focus state (input has gained focus)
*/
focusClass?: string;
/**
* Class added on active state (mouse button is pressed on an input)
*/
activeClass?: string;
/**
* Adds hoverClass to customized input on label hover and labelHoverClass to label on input hover
*/
labelHover?: boolean;
/**
* Class added to label if labelHover set to true
*/
labelHoverClass?: string;
/**
* Increase clickable area by given % (negative number to decrease)
*/
increaseArea?: string;
/**
* True to set 'pointer' CSS cursor over enabled inputs and 'default' over disabled
*/
cursor?: boolean;
/**
* Set true to inherit original input's class name
*/
inheritClass?: boolean;
/**
* If set to true, input's id is prefixed with 'iCheck-' and attached
*/
inheritID?: boolean;
/**
* Add HTML code or text inside customized input
*/
insert?: string;
}
interface JQuery {
iCheck(options?: ICheckOptions): JQuery;
iCheck(command: string, callback?: () => void): void;
}