Angular 4.0 Teradata data-table ng-template for all columns

折月煮酒 提交于 2019-12-11 09:21:55

问题


does anybody know if there is a way to apply an < ng-template > for all columns in the < td-data-table > by declaring only one < ng-template > and not one for every column. Something like:

<ng-template tdDataTableTemplate="{{columns}}" let-value="value">
    <div>
        <span>{{value.content}}</span>
        <br>
        <span *ngIf="enabler">{{value.subcontent}}</span>
    </div>
</ng-template>

来源:https://stackoverflow.com/questions/46483138/angular-4-0-teradata-data-table-ng-template-for-all-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!