mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-15 22:40:21 +00:00
Merge pull request #5717 from GregOnNet/master
Add typings for simplebarjs
This commit is contained in:
Executable
+5
@@ -0,0 +1,5 @@
|
||||
/// <reference path="simplebar.d.ts"/>
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
|
||||
var simplebar = $.fn.simplebar.noConflict();
|
||||
$.fn.simplebar = simplebar;
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
// 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user