material-dynamic-table
Version:
Dynamic table component for angular built on top of angular material table. It offers sorting, pagination, filtering per column and the ability to specify content types and components used for displaying them.
41 lines (40 loc) • 1.86 kB
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { AfterViewInit, ElementRef, NgZone, OnDestroy } from '@angular/core';
import { Subject } from 'rxjs';
import { ColumnResizeNotifier, ColumnResizeNotifierSource } from './column-resize-notifier';
import { HeaderRowEventDispatcher } from './event-dispatcher';
import * as i0 from "@angular/core";
/**
* Base class for ColumnResize directives which attach to mat-table elements to
* provide common events and services for column resizing.
*/
export declare abstract class ColumnResize implements AfterViewInit, OnDestroy {
protected readonly destroyed: Subject<void>;
abstract readonly columnResizeNotifier: ColumnResizeNotifier;
abstract readonly elementRef: ElementRef<HTMLElement>;
protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
protected abstract readonly ngZone: NgZone;
protected abstract readonly notifier: ColumnResizeNotifierSource;
/** Unique ID for this table instance. */
protected readonly selectorId: string;
/** The id attribute of the table, if specified. */
id?: string;
ngAfterViewInit(): void;
ngOnDestroy(): void;
/** Gets the unique CSS class name for this table instance. */
getUniqueCssClass(): string;
/** Called when a column in the table is resized. Applies a css class to the table element. */
setResized(): void;
getTableHeight(): number;
private _listenForRowHoverEvents;
private _listenForResizeActivity;
private _listenForHoverActivity;
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResize, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnResize, never, never, {}, {}, never, never, false, never>;
}