【问题标题】:Datagrid Row Details - Can I replace the row with a custom componentDatagrid Row Details - 我可以用自定义组件替换行吗
【发布时间】:2017-11-02 14:22:06
【问题描述】:

有没有办法使用带有自定义组件的 clrDgReplace 来获取行详细信息?

我知道你可以这样使用它

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

但是以这种方式调用行详细信息时,您可以获得相同的功能吗?

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

【问题讨论】:

    标签: vmware-clarity


    【解决方案1】:

    只需将&lt;clr-dg-row-detail&gt; 元素放在my-detail 的模板中:https://plnkr.co/edit/kPbucjmAKXXwayMm1jmw?p=preview

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-31
      • 1970-01-01
      • 1970-01-01
      • 2012-11-26
      • 2023-04-06
      • 2023-02-15
      • 2013-03-20
      • 2017-07-08
      相关资源
      最近更新 更多