forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathion.rangeSlider-tests.ts
65 lines (64 loc) · 1.34 KB
/
ion.rangeSlider-tests.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
/// <reference path="../jquery/jquery.d.ts"/>
/// <reference path="ion.rangeSlider.d.ts"/>
var sliderInputElement = $('<input />');
sliderInputElement.ionRangeSlider({
decorate_both: true,
disable: false,
drag_interval: false,
force_edges: false,
from: 30,
from_fixed: false,
from_max: 50,
from_min: 20,
from_shadow: false,
grid: true,
grid_margin: true,
grid_num: 4,
grid_snap: false,
hide_from_to: false,
hide_min_max: false,
keyboard: true,
keyboard_step: 1,
max: 100,
max_interval: 5,
max_postfix: "+",
min: 10,
min_interval: 5,
onChange: function (obj) {
console.log(obj);
},
onFinish: function (obj) {
console.log(obj);
},
onStart: function (obj) {
console.log(obj);
},
onUpdate: function (obj) {
console.log(obj);
},
postfix: ".00",
prefix: "$",
prettify: function(num) {
return String(num);
},
prettify_enabled: true,
prettify_separator: ",",
step: 10,
to: 80,
to_fixed: false,
to_max: 100,
to_min: 60,
to_shadowed: false,
type: "double",
values: ["a", "b", "c"],
values_separator: ","
});
sliderInputElement.update({
min: 20,
max: 90,
from: 40,
to: 70,
step: 5
});
sliderInputElement.reset();
sliderInputElement.destroy();