UNPKG

1.71 kBTypeScriptView Raw
1/**
2 * @license
3 *
4 * Use of this source code is governed by an MIT-style license that can be
5 * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE
6 */
7import { ElementRef, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
8import { Subject } from 'rxjs';
9import { ADTSettings } from './models/settings';
10import { Api } from 'datatables.net';
11import * as i0 from "@angular/core";
12export declare class DataTableDirective implements OnDestroy, OnInit {
13 private el;
14 private vcr;
15 private renderer;
16 /**
17 * The DataTable option you pass to configure your table.
18 */
19 dtOptions: ADTSettings;
20 /**
21 * This trigger is used if one wants to trigger manually the DT rendering
22 * Useful when rendering angular rendered DOM
23 */
24 dtTrigger: Subject<ADTSettings>;
25 /**
26 * The DataTable instance built by the jQuery library [DataTables](datatables.net).
27 *
28 * It's possible to execute the [DataTables APIs](https://datatables.net/reference/api/) with
29 * this variable.
30 */
31 dtInstance: Promise<Api>;
32 private dt;
33 constructor(el: ElementRef, vcr: ViewContainerRef, renderer: Renderer2);
34 ngOnInit(): void;
35 ngOnDestroy(): void;
36 private displayTable;
37 private applyNgPipeTransform;
38 private applyNgRefTemplate;
39 private getColumnUniqueId;
40 static ɵfac: i0.ɵɵFactoryDeclaration<DataTableDirective, never>;
41 static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableDirective, "[datatable]", never, { "dtOptions": { "alias": "dtOptions"; "required": false; }; "dtTrigger": { "alias": "dtTrigger"; "required": false; }; }, {}, never, never, false, never>;
42}