import { Directive, OnInit, Input, ContentChild, TemplateRef, ElementRef, HostBinding } from '@angular/core'; @Directive({ selector: 'data-column' }) export class ColumnDirective implements OnInit { @Input() edit: string; @Input() title: string; @Input() field: string; @Input() width: number; @Input() align: 'left' | 'center' | 'right' = 'left'; @Input() fixed?: any; @Input() className?: string; @Input() media?: object; @Input() sortable?: boolean; @Input() multipleFilter?: boolean = true; @Input() filter?: any; @HostBinding('class.fixed') fixedClass = this.fixed === 'left'; constructor(private el: ElementRef) { } ngOnInit() { } }