Update the map containing the content's column definitions.
()
| 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() { |
no test coverage detected