/* tslint:disable:member-ordering */ import { Directive, ElementRef, Input } from '@angular/core'; @Directive({ selector: '[cmttable]' }) export class cmttable { constructor(private el: ElementRef) {} @Input('cmttable') set orient(orient: string) { this.el.nativeElement.style.width = '100%'; this.el.nativeElement.style.lineHeight= '21px'; this.el.nativeElement.style.overflow= 'hidden'; this.el.nativeElement.style.textOverflow = 'ellipsis'; this.el.nativeElement.style.whiteSpace= 'nowrap'; this.el.nativeElement.style.textAlign= 'left'; this.el.nativeElement.style.padding= '5px'; } } /* Copyright 2017 Google Inc. All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at http://angular.io/license */