Adds the sticky column styles for the rows according to the columns' stick states.
(rows: HTMLElement[], rowDef: BaseRowDef)
| 1303 | |
| 1304 | /** Adds the sticky column styles for the rows according to the columns' stick states. */ |
| 1305 | private _addStickyColumnStyles(rows: HTMLElement[], rowDef: BaseRowDef) { |
| 1306 | const columnDefs = Array.from(rowDef?.columns || []).map(columnName => { |
| 1307 | const columnDef = this._columnDefsByName.get(columnName); |
| 1308 | if (!columnDef) { |
| 1309 | throw getTableUnknownColumnError(columnName); |
| 1310 | } |
| 1311 | return columnDef; |
| 1312 | }); |
| 1313 | const stickyStartStates = columnDefs.map(columnDef => columnDef.sticky); |
| 1314 | const stickyEndStates = columnDefs.map(columnDef => columnDef.stickyEnd); |
| 1315 | this._stickyStyler.updateStickyColumns( |
| 1316 | rows, |
| 1317 | stickyStartStates, |
| 1318 | stickyEndStates, |
| 1319 | !this.fixedLayout || this._forceRecalculateCellWidths, |
| 1320 | ); |
| 1321 | } |
| 1322 | |
| 1323 | /** Gets the list of rows that have been rendered in the row outlet. */ |
| 1324 | _getRenderedRows(rowOutlet: RowOutlet): HTMLElement[] { |
no test coverage detected