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