* Updates the footer sticky styles. First resets all applied styles with respect to the cells * sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is * automatically called when the footer row changes its displayed set of columns, or if its * sticky in
()
| 873 | * of these events. |
| 874 | */ |
| 875 | updateStickyFooterRowStyles(): void { |
| 876 | const footerRows = this._getRenderedRows(this._footerRowOutlet); |
| 877 | |
| 878 | // Hide the tfoot element if there are no footer rows. This is necessary to satisfy |
| 879 | // overzealous a11y checkers that fail because the `rowgroup` element does not contain |
| 880 | // required child `row`. |
| 881 | if (this._isNativeHtmlTable) { |
| 882 | const tfoot = closestTableSection(this._footerRowOutlet, 'tfoot'); |
| 883 | if (tfoot) { |
| 884 | tfoot.style.display = footerRows.length ? '' : 'none'; |
| 885 | } |
| 886 | } |
| 887 | |
| 888 | const stickyStates = this._footerRowDefs.map(def => def.sticky); |
| 889 | this._stickyStyler.clearStickyPositioning(footerRows, ['bottom']); |
| 890 | this._stickyStyler.stickRows(footerRows, stickyStates, 'bottom'); |
| 891 | this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement, stickyStates); |
| 892 | |
| 893 | // Reset the dirty state of the sticky input change since it has been used. |
| 894 | this._footerRowDefs.forEach(def => def.resetStickyChanged()); |
| 895 | } |
| 896 | |
| 897 | /** |
| 898 | * Updates the column sticky styles. First resets all applied styles with respect to the cells |
no test coverage detected