MCPcopy Create free account
hub / github.com/angular/components / _forceRenderHeaderRows

Method _forceRenderHeaderRows

src/cdk/table/table.ts:1262–1270  ·  view source on GitHub ↗

* Clears any existing content in the header row outlet and creates a new embedded view * in the outlet using the header row definition.

()

Source from the content-addressed store, hash-verified

1260 * in the outlet using the header row definition.
1261 */
1262 private _forceRenderHeaderRows() {
1263 // Clear the header row outlet if any content exists.
1264 if (this._headerRowOutlet.viewContainer.length > 0) {
1265 this._headerRowOutlet.viewContainer.clear();
1266 }
1267
1268 this._headerRowDefs.forEach((def, i) => this._renderRow(this._headerRowOutlet, def, i));
1269 this.updateStickyHeaderRowStyles();
1270 }
1271
1272 /**
1273 * Clears any existing content in the footer row outlet and creates a new embedded view

Callers 2

_renderMethod · 0.95
_renderUpdatedColumnsMethod · 0.95

Calls 3

_renderRowMethod · 0.95
clearMethod · 0.65

Tested by

no test coverage detected