[ADF-4498] Disable Sticky header on Datatable if header is not visible (#4701)

* [ADF-4498] Disable Sticky header on Datatable if header is not visible

* [ADF-4498] Improve flag check
This commit is contained in:
davidcanonieto
2019-05-13 07:02:36 +01:00
committed by Eugenio Romano
parent 898e3b5a80
commit fc9f04c6c6
3 changed files with 72 additions and 1 deletions

View File

@@ -645,6 +645,10 @@ export class DataTableComponent implements AfterContentInit, OnChanges, DoCheck,
return !this.loading && !this.isEmpty() && !this.noPermission;
}
isStickyHeaderEnabled() {
return this.stickyHeader && this.isHeaderVisible();
}
private emitRowSelectionEvent(name: string, row: DataRow) {
const domEvent = new CustomEvent(name, {
detail: {