gpt4 book ai didi

angular - 无法绑定(bind)到 'options',因为它不是 'p-multiSelect' 的已知属性

转载 作者:太空狗 更新时间:2023-10-29 18:03:37 26 4
gpt4 key购买 nike

我正在尝试实现 datatable filter of primeng .我的代码如下:

<p-column field="time" header="Time" [filter]="true" filterPlaceholder="&#xf0b0;">
<ng-template pTemplate="filter">
<p-multiSelect [options]="time"></p-multiSelect>
</ng-template>
</p-column>

但它显示错误:无法绑定(bind)到“选项”,因为它不是“p-multiSelect”的已知属性。

最佳答案

你需要导入 import {MultiSelectModule} from 'primeng/primeng';
'
在你的 module.ts 下导入

imports: [
MultiSelectModule
]

关于angular - 无法绑定(bind)到 'options',因为它不是 'p-multiSelect' 的已知属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48124790/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com