清晰度datagrid在使用ngProjectAs时如何替换行?

时间:2018-07-13 03:42:46

标签: angular vmware-clarity

为了在展开时替换行,文档如下所示:

didFinishLaunchingWithOptions

这可行,但是我也想用自己的组件替换UITabBar.appearance().tintColor = <#Color what you want#> ,以便可以延迟加载细节。该文档的外观如下:

<clr-dg-row *ngFor="let user of users">
    <-- Cells declarations -->
    <clr-dg-cell>...</clr-dg-cell>

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

我尝试将<clr-dg-row-detail>放在自定义组件上和ngProjectAs内部,但会引发错误。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:2)

[clrDgReplace]="true"必须位于<clr-dg-row-detail>元素上,它是行详细信息组件的输入。 因此,在您的情况下,<clr-dg-row-detail [clrDgReplace]="true">位于自定义组件的模板内。

相关问题