* 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> = {},
)
| 1380 | * of where to place the new row template in the outlet. |
| 1381 | */ |
| 1382 | private _renderRow( |
| 1383 | outlet: RowOutlet, |
| 1384 | rowDef: BaseRowDef, |
| 1385 | index: number, |
| 1386 | context: RowContext<T> = {}, |
| 1387 | ): EmbeddedViewRef<RowContext<T>> { |
| 1388 | // TODO(andrewseguin): enforce that one outlet was instantiated from createEmbeddedView |
| 1389 | const view = outlet.viewContainer.createEmbeddedView(rowDef.template, context, index); |
| 1390 | this._renderCellTemplateForItem(rowDef, context); |
| 1391 | return view; |
| 1392 | } |
| 1393 | |
| 1394 | private _renderCellTemplateForItem(rowDef: BaseRowDef, context: RowContext<T>) { |
| 1395 | for (let cellTemplate of this._getCellTemplates(rowDef)) { |
no test coverage detected