Add skin option types (#36915)

This commit is contained in:
Andrew 2019-07-16 20:10:44 +03:00 committed by Andrew Branch
parent 01a08176e5
commit c641fb3ab6
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// Type definitions for ion-rangeslider 2.2
// Type definitions for ion-rangeslider 2.3
// Project: https://github.com/IonDen/ion.rangeSlider/, http://ionden.com/a/plugins/ion.rangeslider/en.html
// Definitions by: Karel van de Plassche <https://github.com/Karel-van-de-Plassche>
// JamesJGoodwin <https://github.com/JamesJGoodwin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@ -18,6 +19,7 @@ declare global {
}
export interface IonRangeSliderOptions {
skin?: 'flat' | 'big' | 'modern' | 'round' | 'sharp' | 'square'; // Set slider theme [Default: flat]
type?: string; // Choose slider type, could be `single` - for one handle, or `double` for two handles [Default: single]
min?: number; // Set slider minimum value [Default: 10]
max?: number; // Set slider maximum value [Default: 100]

View File

@ -1,6 +1,7 @@
/// <reference types="jquery"/>
let sliderInputElement = $('<input />');
sliderInputElement.ionRangeSlider({
skin: 'round',
decorate_both: true,
disable: false,
drag_interval: false,