forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.tinyscrollbar.d.ts
53 lines (51 loc) · 1.68 KB
/
jquery.tinyscrollbar.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
// Type definitions for jQuery tinyscrollbar 1.8
// Project: http://baijs.nl/tinyscrollbar/
// Definitions by: Christiaan Rakowski <https://github.com/csrakowski/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
declare module JQueryTinyScrollbar {
export interface JQueryTinyScrollbarOptions {
/**
* Enable mobile invert style scrolling. (default: false)
*/
invertscroll?: boolean;
/**
* Vertical or horizontal scroller? 'x' or 'y'. (default: 'x')
*/
axis?: string;
/**
* How many pixels must the mouswheel scrolls at a time. (default: 40)
*/
wheel?: number;
/**
* Enable or disable the mousewheel. (default: true)
*/
scroll?: boolean;
/**
* Return scrollwheel event to browser if there is no more content. (default: true)
*/
lockscroll?: boolean;
/**
* Set the size of the scrollbar to auto or a fixed number. (default: 'auto')
*/
size?: any;
/**
* Set the size of the thumb to auto or a fixed number. (default: 'auto')
*/
sizethumb?: any;
}
}
interface JQuery {
/**
* Creates a new tinyscrollbar with the specified, or default, options.
*
* @param options The options
*/
tinyscrollbar(options?: JQueryTinyScrollbar.JQueryTinyScrollbarOptions): JQuery;
/**
* Updates an existing tinyscrollbar with the specified, or default, options.
*
* @param options The options
*/
tinyscrollbar_update(options?: any): JQuery;
}