DataTable Filters on Metronic 9.1.2
Hello team
I have datatable with remote data source, i can search it with input that have attribute "data-datatable-search", but how to implement datatable filters ?
Thanks
Replies (3)
Hi El Bhiruni
You can implement DataTable filters using the following approach. Check the example initialization code here:
/metronic-tailwind-html/src/app/datatables/current-sessions.js
dataTable
.setFilter({
column,
type: "text",
value: "search keywords ",
})
.redraw(); This will apply the filter to the specified column and refresh the DataTable.