Can 'ng-multiselect-dropdown' be used to filter a table with the data coming from a database.
I am trying to filter data onSelect of any of the dropdown items
These are the codes on the html file
<div class="container">
<ng-multiselect-dropdown
[placeholder]="'custom placeholder'"
[settings]="dropdownSettings"
[data]="data"
(onSelect)="onItemSelect($event)"
(onSelectAll)="onSelectAll($event)"
>
</ng-multiselect-dropdown>
</div>
These are from the ts file
dropdownList = []; selectedItems = [];
dropdownSettings: IDropdownSettings;
ngOnInit(): void { this.dropdownList = this.data;
this.dropdownSettings = {
singleSelection: false,
idField: 'id',
textField: 'transactionType',
selectAllText: 'Select All',
unSelectAllText: 'UnSelect All',
itemsShowLimit: 3,
allowSearchFilter: true
};}
onItemSelect(item: any) { item; } onSelectAll(items: any) { items; }
Can there be a function I would call so that onSelect of any dropdown item, the data on the table would be filtered..