[ACA-4361] Fix data column conflict (#6986)

* [ACA-4361] Fix data column conflict

* * revert html
This commit is contained in:
Dharan 2021-05-07 23:09:39 +05:30 committed by GitHub
parent 0b272b0de9
commit 5780b46acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -27,13 +27,13 @@ import { DataColumnComponent } from './data-column.component';
export class DateColumnHeaderComponent {
@ContentChild(TemplateRef)
public template: TemplateRef<any>;
public header: TemplateRef<any>;
constructor(private columnComponent: DataColumnComponent) {}
ngAfterContentInit() {
if (this.columnComponent) {
this.columnComponent.header = this.template;
this.columnComponent.header = this.header;
}
}
}

View File

@ -46,6 +46,6 @@ export class ObjectDataColumn implements DataColumn {
this.copyContent = input.copyContent;
this.focus = input.focus;
this.sortingKey = input.sortingKey;
this.header = input.template;
this.header = input.header;
}
}