Topic: MdbTableDirective Filter SearchLocalDataBy results specific columns
Angular PRO Member
Currently implementing Mdbootstrap Datatable with search functionality
I've linked this to a local data source and can populate the table, no issue. Whoever, I noticed that the search (mdbTable.searchLocalDataBy) searches every column in the dataset even if not visible on the table (like Id or CreatedDate)
Ability to provide columns of my dataset that should be filtered
Resources (screenshots, code snippets etc.)
In the next version the new searchLocalDataByFields method will be added.
It will allow you to provide columns of your dataset that should be filtered.
Below is an example of how it will work:
this.mdbTable.searchLocalDataByFields(searchText, ['name', 'age'])
Best Regards, Bartosz
Services & Consulting
Hire our experts to help you design or build a dedicated project.
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 8.1.1
- Device: PC
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: Yes