MCPcopy Index your code
hub / github.com/angular/components / _cacheColumnDefs

Method _cacheColumnDefs

src/cdk/table/table.ts:1113–1129  ·  view source on GitHub ↗

Update the map containing the content's column definitions.

()

Source from the content-addressed store, hash-verified

1111
1112 /** Update the map containing the content's column definitions. */
1113 private _cacheColumnDefs() {
1114 this._columnDefsByName.clear();
1115
1116 const columnDefs = mergeArrayAndSet(
1117 this._getOwnDefs(this._contentColumnDefs),
1118 this._customColumnDefs,
1119 );
1120 columnDefs.forEach(columnDef => {
1121 if (
1122 this._columnDefsByName.has(columnDef.name) &&
1123 (typeof ngDevMode === 'undefined' || ngDevMode)
1124 ) {
1125 throw getTableDuplicateColumnNameError(columnDef.name);
1126 }
1127 this._columnDefsByName.set(columnDef.name, columnDef);
1128 });
1129 }
1130
1131 /** Update the list of all available row definitions that can be used. */
1132 private _cacheRowDefs() {

Callers 1

_renderMethod · 0.95

Calls 5

_getOwnDefsMethod · 0.95
mergeArrayAndSetFunction · 0.85
setMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected