forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.slimScroll.d.ts
116 lines (113 loc) · 2.62 KB
/
jquery.slimScroll.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
113
114
115
// Type definitions for jQuery.slimScroll v1.3.8
// Project: https://github.com/rochal/jQuery-slimScroll
// Definitions by: Chintan Shah <https://github.com/Promact>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface IJQuerySlimScrollOptions {
/**
* width in pixels of the visible scroll area
*/
width? :string;
/**
* height in pixels of the visible scroll area
*/
height? :string;
/**
* width in pixels of the scrollbar and rail
*/
size? :string;
/**
* scrollbar color, accepts any hex/color value
*/
color?:string;
/**
* scrollbar position - left/right
*/
position?:string;
/**
* distance in pixels between the side edge and the scrollbar
*/
distance?:string;
/**
* default scroll position on load - top / bottom / $('selector')
*/
start?:any;
/**
* sets scrollbar opacity
*/
opacity? :number;
/**
* enables always-on mode for the scrollbar
*/
alwaysVisible?: boolean;
/**
* check if we should hide the scrollbar when user is hovering over
*/
disableFadeOut?: boolean;
/**
* sets visibility of the rail
*/
railVisible?: boolean;
/**
* sets rail color
*/
railColor?: string;
/**
* sets rail opacity
*/
railOpacity?:number;
/**
* whether we should use jQuery UI Draggable to enable bar dragging
*/
railDraggable?: boolean;
/**
* default CSS class of the slimscroll rail
*/
railClass?: string;
/**
* default CSS class of the slimscroll bar
*/
barClass?: string;
/**
* default CSS class of the slimscroll wrapper
*/
wrapperClass?: string;
/**
* check if mousewheel should scroll the window if we reach top/bottom
*/
allowPageScroll?: boolean;
/**
* scroll amount applied to each mouse wheel step
*/
wheelStep?: number;
/**
* scroll amount applied when user is using gestures
*/
touchScrollStep?: number;
/**
* sets border radius
*/
borderRadius?: string;
/**
* sets border radius of the rail
*/
railBorderRadius?: string;
/**
* jumps to the specified scroll value
*/
scrollTo?: string;
/**
* increases/decreases current scroll value by specified amount
*/
scrollBy?: string;
/**
* release resources held by the plugin
*/
destroy?:boolean;
}
interface JQuery {
slimScroll:{
(): JQuery;
(options:IJQuerySlimScrollOptions): JQuery;
}
}