mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
// Type definitions for jQuery tinyscrollbar 1.8
|
|
// Project: http://baijs.nl/tinyscrollbar/
|
|
// Definitions by: Christiaan Rakowski <https://github.com/csrakowski>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="jquery" />
|
|
|
|
declare namespace 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;
|
|
}
|