angular - 在包装表中使用 Angular Material 表 mat-text-column
问题描述
我正在使用 Angular Material 表,并且构建了一个像https://github.com/angular/components/tree/master/src/material-examples/table-wrapped这样的包装表。有什么办法可以mat-text-column
在我包裹的桌子上吗?当我执行以下操作时:
<wrapper-table [dataSource]="dataSource" [columns]="displayedColumns" matSort #sort="matSort">
<mat-text-column name="firstName"></mat-text-column>
</wrapper-table>
我明白了Error: Could not find column with id "firstName".
解决方案
推荐阅读
- python - 有没有办法在 Python3 中的 super() 时忽略 __init__() 方法的一部分?
- google-sheets - Google Sheets Query/ImportRange 公式 - 没有给我#REF 以便我可以连接到工作表?
- java - Apache Beam GenerateSequence 不会以指定的速率发射元素
- python - 如何在 lambda 中为 tkinter 按钮分配变量
- node.js - Node.js 12.x 的最佳 --lib 选项
- algorithm - 确定性选择的时间复杂度
- jenkins - 仅在主节点上签出和运行 SCM 管道
- javascript - 在 selenium 测试中使用 javascript 执行程序时 sendkeys 不起作用
- linux - 自动化设置项
- java - 如何将删除的值添加到新数组中并打印它们