shlomiassaf / ngrid

A angular grid for the enterprise

Home Page:https://shlomiassaf.github.io/ngrid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

detail row table template can not live outsite table boundries

shlomiassaf opened this issue · comments

Defining a detail row template, to be used across an application is currently not possible
because PblNgridRowComponent requires an injection of the external api, which is not available where a template is defined. The context of the template is unreachable and set internally by CdkTable so pushing it from the template is also not possible.

Workaround:

Define the template inside the table you want detail row support in.

<pbl-ngrid-row *pblNgridDetailRowParentRef="let row; table as table"
               [detailRow]="row"
               matRipple>
</pbl-ngrid-row>