UNPKG

ng-cdk-table-virtual-scroll

Version:
29 lines (28 loc) 1.15 kB
import { AfterContentInit, NgZone, OnChanges, OnDestroy } from '@angular/core'; import { Subject } from 'rxjs'; import { CdkTable } from '@angular/cdk/table'; import { FixedSizeTableVirtualScrollStrategy } from './fixed-size-table-virtual-scroll-strategy'; export declare function _tableVirtualScrollDirectiveStrategyFactory(tableDir: TableItemSizeDirective): FixedSizeTableVirtualScrollStrategy; export declare class TableItemSizeDirective implements OnChanges, AfterContentInit, OnDestroy { private zone; private alive; rowHeight: number; headerEnabled: boolean; headerHeight: number; footerEnabled: boolean; footerHeight: number; bufferMultiplier: number; table: CdkTable<any>; scrollStrategy: FixedSizeTableVirtualScrollStrategy; dataSourceChanges: Subject<void>; private stickyPositions; constructor(zone: NgZone); ngOnDestroy(): void; private isAlive; private isStickyEnabled; ngAfterContentInit(): void; connectDataSource(dataSource: any): void; ngOnChanges(): void; setSticky(offset: any): void; private initStickyPositions; }