Gets the column definitions for the provided row def.
(rowDef: BaseRowDef)
| 1409 | |
| 1410 | /** Gets the column definitions for the provided row def. */ |
| 1411 | private _getCellTemplates(rowDef: BaseRowDef): TemplateRef<any>[] { |
| 1412 | if (!rowDef || !rowDef.columns) { |
| 1413 | return []; |
| 1414 | } |
| 1415 | return Array.from(rowDef.columns, columnId => { |
| 1416 | const column = this._columnDefsByName.get(columnId); |
| 1417 | |
| 1418 | if (!column && (typeof ngDevMode === 'undefined' || ngDevMode)) { |
| 1419 | throw getTableUnknownColumnError(columnId); |
| 1420 | } |
| 1421 | |
| 1422 | return rowDef.extractCellTemplate(column!); |
| 1423 | }); |
| 1424 | } |
| 1425 | |
| 1426 | /** |
| 1427 | * Forces a re-render of the data rows. Should be called in cases where there has been an input |
no test coverage detected