mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Add 'enable' and fix types of properties in 'mCustomScrollbar'.
This commit is contained in:
+19
-5
@@ -40,6 +40,10 @@ declare module MCustomScrollbar {
|
||||
*/
|
||||
autoHideScrollbar?: boolean;
|
||||
scrollButtons?: {
|
||||
/**
|
||||
* Enable or disable scroll buttons.
|
||||
*/
|
||||
enable?: boolean;
|
||||
/**
|
||||
* Scroll buttons scroll type, values: "continuous" (scroll continuously while pressing the button), "pixels" (scrolls by a fixed number of pixels on each click")
|
||||
*/
|
||||
@@ -47,11 +51,11 @@ declare module MCustomScrollbar {
|
||||
/**
|
||||
* Scroll buttons continuous scrolling speed, integer value or "auto" (script calculates and sets the speed according to content length)
|
||||
*/
|
||||
scrollSpeed?: any;
|
||||
scrollSpeed?: number | string;
|
||||
/**
|
||||
* Scroll buttons pixels scrolling amount, value in pixels
|
||||
* Scroll buttons pixels scrolling amount, value in pixels or "auto"
|
||||
*/
|
||||
scrollAmount?: number;
|
||||
scrollAmount?: number | string;
|
||||
}
|
||||
advanced?: {
|
||||
/**
|
||||
@@ -94,14 +98,24 @@ declare module MCustomScrollbar {
|
||||
*/
|
||||
onScroll?: () => void;
|
||||
/**
|
||||
* User defined callback function, triggered when scroll end-limit is reached
|
||||
* A function to call when scrolling is completed and content is scrolled all the way to the end (bottom/right)
|
||||
*/
|
||||
onTotalScroll?: () => void;
|
||||
/**
|
||||
* A function to call when scrolling is completed and content is scrolled back to the beginning (top/left)
|
||||
*/
|
||||
onTotalScrollBack?: () => void;
|
||||
/**
|
||||
* Scroll end-limit offset, value in pixels
|
||||
* Set an offset for which the onTotalScroll callback is triggered.
|
||||
* Its value is in pixels.
|
||||
*/
|
||||
onTotalScrollOffset?: number;
|
||||
/**
|
||||
* Set an offset for which the onTotalScrollBack callback is triggered.
|
||||
* Its value is in pixels
|
||||
*/
|
||||
onTotalScrollBackOffset?: number;
|
||||
/**
|
||||
* User defined callback function, triggered while scrolling
|
||||
*/
|
||||
whileScrolling?: () => void;
|
||||
|
||||
Reference in New Issue
Block a user