You need to sign in to do that
Don't have an account?
venkat bojja
Columns Filter on DataTable in Lightning Web Components
Hi Team,
I have requirement...
On loaded data in datatable i need to filter the columns data with search box. Based on any column we enter the text in search box the relavant record need to display.I need this in LWC(Lightning Web Components.
Thanks in advance...
Thanks & Regards,
Venkateswara Rao B.
I have requirement...
On loaded data in datatable i need to filter the columns data with search box. Based on any column we enter the text in search box the relavant record need to display.I need this in LWC(Lightning Web Components.
Thanks in advance...
Thanks & Regards,
Venkateswara Rao B.
The approach mentioned in https://salesforce.stackexchange.com/questions/306284/how-to-filter-data-in-datatable-lwc-based-on-the-input-in-search-bar is for a single column. You can apply the logic for multiple columns
Check the Playground (https://developer.salesforce.com/docs/component-library/tools/playground/ecxNdhzSt/1/edit) for a preview
Related: https://salesforce.stackexchange.com/questions/302530/lwc-lightning-datatable-search
https://datatables.net/examples/api/multi_filter.html
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you