* Creates a new row template in the outlet and fills it with the set of cell templates. * Optionally takes a context to provide to the row and cells, as well as an optional index * of where to place the new row template in the outlet.
(
outlet: RowOutlet,
rowDef: BaseRowDef,
index: number,
context: RowContext<T> = {},
)
| 1362 | * of where to place the new row template in the outlet. |
| 1363 | */ |
| 1364 | private _renderRow( |
| 1365 | outlet: RowOutlet, |
| 1366 | rowDef: BaseRowDef, |
| 1367 | index: number, |
| 1368 | context: RowContext<T> = {}, |
| 1369 | ): EmbeddedViewRef<RowContext<T>> { |
| 1370 | // TODO(andrewseguin): enforce that one outlet was instantiated from createEmbeddedView |
| 1371 | const view = outlet.viewContainer.createEmbeddedView(rowDef.template, context, index); |
| 1372 | this._renderCellTemplateForItem(rowDef, context); |
| 1373 | return view; |
| 1374 | } |
| 1375 | |
| 1376 | private _renderCellTemplateForItem(rowDef: BaseRowDef, context: RowContext<T>) { |
| 1377 | for (let cellTemplate of this._getCellTemplates(rowDef)) { |
no test coverage detected