繁体   English   中英

如何将唯一的 HTML ID 属性添加到 ngx-datatable-column

[英]How to add a unique HTML ID attribute to an ngx-datatable-column

有没有办法向 ngx-datatable-column 添加唯一的 HTML ID 属性? 我试过这个,但似乎无法让它工作。 例如:

<ngx-datatable-column id="row.id" prop="dateDue" name="Date Due">
    <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row.id }}
    </ng-template>
</ngx-datatable-column>
// the row id renders as expected for testing purposes, however I'm wanting to add a unique ID to the ngx-datatable-column with the HTML ID set to the unique ID being passed

id="row.id"更改为id="{{row.id}}"但它将在列中而不是在一行中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM