JQuery Lazy Load - Adjustment in type appear (#24799)

* Adjustment in type appear

* Allow type null in appear

* Adjustments
This commit is contained in:
Anderson Friaça
2018-04-09 12:53:04 -07:00
committed by Mohamed Hegazy
parent 35097ce41b
commit 9075daa897
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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);