I am trying to implement datatable filter of primeng. My code is as below:
<p-column field="time" header="Time" [filter]="true" filterPlaceholder="">
<ng-template pTemplate="filter">
<p-multiSelect [options]="time"></p-multiSelect>
</ng-template>
</p-column>
But it is showing an error: Can't bind to 'options' since it isn't a known property of 'p-multiSelect'.
You need to import import {MultiSelectModule} from 'primeng/primeng';
'
in your module.ts under imports
imports: [
MultiSelectModule
]
You need to install Angular CDK. Use npm install @angular/cdk --save command. Import multi select module in yourModule.module using
import {MultiSelectModule} from 'primeng/multiselect';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With