forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.slimScroll.d.ts
60 lines (57 loc) · 2.01 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
// Type definitions for jQuery.slimScroll v1.3.3
// Project: https://github.com/rochal/jQuery-slimScroll
// Definitions by: Chintan Shah <https://github.com/Promact>
// Definitions: https://github.com/borisyankov/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;
// defautlt CSS class of the slimscroll rail
railClass?: string;
// defautlt CSS class of the slimscroll bar
barClass?: string;
// defautlt 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;
}
interface JQuery {
slimScroll:{
(): JQuery;
(options:IJQuerySlimScrollOptions): JQuery;
}
}