Files
DefinitelyTyped/ion.rangeSlider/ion.rangeSlider-1.9.1-tests.ts
sixinli 4e36e715e2 Add tsd for ion.rangeSlider 2.0.1
Add the typing and test files for ion.rangeSlider version 2.0.1
2014-12-01 16:47:03 -05:00

39 lines
804 B
TypeScript

/// <reference path="../jquery/jquery.d.ts"/>
/// <reference path="ion.rangeSlider-1.9.1.d.ts"/>
var sliderInputElement = $('<input />');
sliderInputElement.ionRangeSlider({
min: 10,
max: 100,
from: 30,
to: 80,
type: "single",
step: 10,
prefix: "$",
postfix: ".00",
maxPostfix: "+",
hasGrid: true,
hideMinMax: true,
hideFromTo: true,
prettify: true,
disable: false,
values: ["a", "b", "c"],
onLoad: function (obj) {
console.log(obj);
},
onChange: function (obj) {
console.log(obj);
},
onFinish: function (obj) {
console.log(obj);
}
});
sliderInputElement.ionRangeSlider("update", {
min: 20,
max: 90,
from: 40,
to: 70,
step: 5
});
sliderInputElement.ionRangeSlider("remove");