UNPKG

dynamic-mat-table

Version:

dynamic-mat-table is an Angular component for presenting large and complex data with a lightning fast performance (at least 10x faster) and excellent level of control over the presentation.

29 lines (28 loc) 1.15 kB
import { AfterContentInit, NgZone, OnChanges, OnDestroy } from '@angular/core'; import { MatTable } from '@angular/material/table'; import { FixedSizeTableVirtualScrollStrategy } from './fixed-size-table-virtual-scroll-strategy'; import { Subject } from 'rxjs'; 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: MatTable<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; }