Jake
Jake

Reputation: 97

Datagrid Row Details - Can I replace the row with a custom component

Is there a way to use clrDgReplace with a custom component for the row details?

I know you can use it like this

<clr-dg-row-detail *clrIfExpanded [clrDgReplace]="true"> Lorem ipsum... </clr-dg-row-detail>

but can you get the same functionality when invoking row details in this manner?

<my-detail *clrIfExpanded [user]="user" ngProjectAs="clr-dg-row-detail"></my-detail>

Upvotes: 2

Views: 141

Answers (1)

Eudes
Eudes

Reputation: 1661

Just put the <clr-dg-row-detail> element inside of my-detail's template: https://plnkr.co/edit/kPbucjmAKXXwayMm1jmw?p=preview

Upvotes: 1

Related Questions