projects/swimlane/ngx-datatable/src/lib/components/footer/footer.directive.ts
import { Input, Directive, TemplateRef, ContentChild } from '@angular/core';
import { DataTableFooterTemplateDirective } from './footer-template.directive';
@Directive({ selector: 'ngx-datatable-footer' })
export class DatatableFooterDirective {
@Input() footerHeight: number;
@Input() totalMessage: string;
@Input() selectedMessage: string | boolean;
@Input() pagerLeftArrowIcon: string;
@Input() pagerRightArrowIcon: string;
@Input() pagerPreviousIcon: string;
@Input() pagerNextIcon: string;
@Input('template')
_templateInput: TemplateRef<any>;
@ContentChild(DataTableFooterTemplateDirective, { read: TemplateRef })
_templateQuery: TemplateRef<any>;
get template(): TemplateRef<any> {
return this._templateInput || this._templateQuery;
}
}