mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-21 11:09:53 +08:00
38 lines
987 B
TypeScript
Executable File
38 lines
987 B
TypeScript
Executable File
// Type definitions for simplebar.js 1.1.7
|
|
// Project: https://github.com/Grsmto/simplebar
|
|
// Definitions by: Gregor Woiwode <https://github.com/gregonnet>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
interface SimplebarOpions {
|
|
autoHide?: boolean;
|
|
wrapContent?: boolean
|
|
}
|
|
|
|
interface JQuery {
|
|
/**
|
|
* Enables simplebar on calling element.
|
|
*/
|
|
simplebar: {
|
|
/**
|
|
* Define if scrollbar should be faded out automatically
|
|
*
|
|
* @param indicator if scrollbar should be faded out automatically.
|
|
*/
|
|
(options?: SimplebarOpions): JQuery;
|
|
};
|
|
}
|
|
|
|
interface JQueryStatic {
|
|
/**
|
|
* Enables simplebar on calling element.
|
|
*/
|
|
simplebar: {
|
|
/**
|
|
* Define if scrollbar should be faded out automatically
|
|
*
|
|
* @param indicator if scrollbar should be faded out automatically.
|
|
*/
|
|
(options?: SimplebarOpions): JQuery;
|
|
};
|
|
}
|