ng-devui
Version:
DevUI components based on Angular
22 lines (21 loc) • 1.24 kB
TypeScript
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { Subscription } from 'rxjs';
import * as i0 from "@angular/core";
export declare class LazyLoadDirective implements OnDestroy, OnChanges, AfterViewInit {
private el;
enableLazyLoad: boolean;
contentMode: 'img' | 'list';
target: HTMLElement | Window;
imgLoadSrc: string;
direction: 'vertical' | 'horizontal';
loadMore: EventEmitter<any>;
scrollSubscription: Subscription;
loadFactor: number;
constructor(el: ElementRef);
ngOnChanges(changes: SimpleChanges): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
scrollList(event: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LazyLoadDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<LazyLoadDirective, "[dLazyLoad]", never, { "enableLazyLoad": { "alias": "enableLazyLoad"; "required": false; }; "contentMode": { "alias": "contentMode"; "required": false; }; "target": { "alias": "target"; "required": false; }; "imgLoadSrc": { "alias": "imgLoadSrc"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, { "loadMore": "loadMore"; }, never, never, false, never>;
}