UNPKG

1.72 kBTypeScriptView Raw
1/// <reference types="datatables.net" />
2/**
3 * @license
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE
7 */
8import { ElementRef, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
9import { Subject } from 'rxjs';
10import { ADTSettings } from './models/settings';
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<DataTables.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}