mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
JQuery Lazy Load - Adjustment in type appear (#24799)
* Adjustment in type appear * Allow type null in appear * Adjustments
This commit is contained in:
committed by
Mohamed Hegazy
parent
35097ce41b
commit
9075daa897
Vendored
+1
-1
@@ -15,7 +15,7 @@ declare namespace JQueryLazyLoad {
|
||||
container?: JQuery;
|
||||
data_attribute?: string;
|
||||
skip_invisible?: boolean;
|
||||
appear?: null;
|
||||
appear?: ((elementsLeft: number, options: Options) => void) | null;
|
||||
load?: (elementsLeft?: number, options?: Options) => void;
|
||||
placeholder?: string;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,10 @@ $(document).ready(() => {
|
||||
effect: 'fadeIn',
|
||||
container: $('#container'),
|
||||
failure_limit: 10,
|
||||
skip_invisible: true
|
||||
skip_invisible: true,
|
||||
appear: (elementsLeft: number, settings: JQueryLazyLoad.Options) => {
|
||||
console.log(elementsLeft);
|
||||
}
|
||||
};
|
||||
$('.lazyload').lazyload(options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user