[英]Ngx-datatable wrongly in (component) HTML how do I sort table by column name with a dropdown box (Angular 7)
[英]How can i add button to a column in a ngx-datatable in Angular 8?
此 HTML 代码对我不起作用。
<ngx-datatable-column name="Option" prop="option" [draggable]="false" [resizeable]="false
[width]="250">
<span>
<button class="optionButton" type="button" data-toggle="modal" data-
target="#addOption">Reserve Product</button>
</span>
</ngx-datatable-column>
将按钮保留在<ng-template>
像这样尝试:
<ngx-datatable-column name="Option" prop="option" [draggable]="false" [resizeable]="false
[width]="250">
<ng-template ngx-datatable-cell-template let-value="value">
<span>
<button class="optionButton" type="button" data-toggle="modal" data-
target="#addOption">Reserve Product</button>
</span>
</ng-template>
</ngx-datatable-column>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.