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

Method _cacheColumnDefs

src/cdk/table/table.ts:1131–1147  ·  view source on GitHub ↗

Update the map containing the content's column definitions.

()

Source from the content-addressed store, hash-verified

1129
1130 /** Update the map containing the content's column definitions. */
1131 private _cacheColumnDefs() {
1132 this._columnDefsByName.clear();
1133
1134 const columnDefs = mergeArrayAndSet(
1135 this._getOwnDefs(this._contentColumnDefs),
1136 this._customColumnDefs,
1137 );
1138 columnDefs.forEach(columnDef => {
1139 if (
1140 this._columnDefsByName.has(columnDef.name) &&
1141 (typeof ngDevMode === 'undefined' || ngDevMode)
1142 ) {
1143 throw getTableDuplicateColumnNameError(columnDef.name);
1144 }
1145 this._columnDefsByName.set(columnDef.name, columnDef);
1146 });
1147 }
1148
1149 /** Update the list of all available row definitions that can be used. */
1150 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