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

Method _forceRenderHeaderRows

src/cdk/table/table.ts:1280–1288  ·  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

1278 * in the outlet using the header row definition.
1279 */
1280 private _forceRenderHeaderRows() {
1281 // Clear the header row outlet if any content exists.
1282 if (this._headerRowOutlet.viewContainer.length > 0) {
1283 this._headerRowOutlet.viewContainer.clear();
1284 }
1285
1286 this._headerRowDefs.forEach((def, i) => this._renderRow(this._headerRowOutlet, def, i));
1287 this.updateStickyHeaderRowStyles();
1288 }
1289
1290 /**
1291 * 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