forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathion.rangeSlider.d.ts
51 lines (47 loc) · 1.34 KB
/
ion.rangeSlider.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
// Type definitions for for Ion.RangeSlider 1.9.1
// Project: https://github.com/IonDen/ion.rangeSlider/
// Definitions by: Douglas Eichelberger <https://github.com/dduugg>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// API documentation: http://ionden.com/a/plugins/ion.rangeSlider/en.html
interface JQuery {
ionRangeSlider(): JQuery;
ionRangeSlider(options: IonRangeSliderOptions): JQuery;
ionRangeSlider(method: string): JQuery;
ionRangeSlider(method: string, options: IonRangeSliderOptions): JQuery;
}
interface IonRangeSliderOptions {
disable?: boolean;
from?: number;
hasGrid?: boolean;
hideFromTo?: boolean;
hideMinMax?: boolean;
max?: number;
maxPostfix?: string;
min?: number;
onChange?: (obj: IonRangeSliderEvent) => void;
onFinish?: (obj: IonRangeSliderEvent) => void;
onLoad?: (obj: IonRangeSliderEvent) => void;
postfix?: string;
prefix?: string;
prettify?: boolean;
step?: number;
to?: number;
type?: string;
values?: any[];
}
interface IonRangeSliderEvent {
fromNumber: number;
fromPers: number;
fromValue?: any;
fromX: number;
fromX_pure?: number;
input: JQuery;
max: number;
min: number;
slider: JQuery;
toNumber: number;
toPers: number;
toValue?: number;
toX: number;
toX_pure?: number;
}