import {Component, Input, AfterViewInit, ElementRef, OnChanges} from '@angular/core'; import { Grid } from '../../../lib/grid'; @Component({ selector: '[ng2-st-actions-title]', template: `
{{ actionsColumnTitle }}
`, }) export class ActionsTitleComponent implements AfterViewInit, OnChanges { @Input() grid: Grid; actionsColumnTitle: string; constructor(private ref: ElementRef) { } ngAfterViewInit() { this.ref.nativeElement.classList.add('ng2-smart-actions'); } ngOnChanges() { this.actionsColumnTitle = this.grid.getSetting('actions.columnTitle'); } }