import {Component, Input, Output, EventEmitter, OnChanges} from '@angular/core';
import { Grid } from '../../../lib/grid';
import { DataSource } from '../../../lib/data-source/data-source';
import { Column } from "../../../lib/data-set/column";
@Component({
selector: '[ng2-st-thead-titles-row]',
template: `
|
|
|
|
`,
})
export class TheadTitlesRowComponent implements OnChanges {
@Input() grid: Grid;
@Input() isAllSelected: boolean;
@Input() source: DataSource;
@Output() sort = new EventEmitter();
@Output() selectAllRows = new EventEmitter();
isMultiSelectVisible: boolean;
showActionColumnLeft: boolean;
showActionColumnRight: boolean;
ngOnChanges() {
this.isMultiSelectVisible = this.grid.isMultiSelectVisible();
this.showActionColumnLeft = this.grid.showActionColumn('left');
this.showActionColumnRight = this.grid.showActionColumn('right');
}
}