angular-datatables
Version:
Angular directive for DataTables
37 lines (36 loc) • 1.26 kB
TypeScript
/**
* @license
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE
*/
/// <reference types="datatables.net" />
import { ElementRef, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
import { Subject } from 'rxjs';
import { ADTSettings } from './models/settings';
export declare class DataTableDirective implements OnDestroy, OnInit {
private el;
private vcr;
private renderer;
/**
* The DataTable option you pass to configure your table.
*/
dtOptions: ADTSettings;
/**
* This trigger is used if one wants to trigger manually the DT rendering
* Useful when rendering angular rendered DOM
*/
dtTrigger: Subject<any>;
/**
* The DataTable instance built by the jQuery library [DataTables](datatables.net).
*
* It's possible to execute the [DataTables APIs](https://datatables.net/reference/api/) with
* this variable.
*/
dtInstance: Promise<DataTables.Api>;
private dt;
constructor(el: ElementRef, vcr: ViewContainerRef, renderer: Renderer2);
ngOnInit(): void;
ngOnDestroy(): void;
private displayTable;
}