I am trying to apply filter on the remote datatable with KTDatatable.
It is metronic 9.x
I do not see any documentation where I could pass all filter criteria with the apiEndpoint URL.
I have referred the documentation located at https://keenthemes.com/metronic/tailwind/docs/components/datatable
Have anyone found any hint on this?
I have tried Faizals solution but filter keep track of old state for some reason making filters an array of many objects
Hi
You can try using the setFilter function. Pass your column and search value like this:
const dataTable = KTDatatable instance;
dataTable.setFilter({
column: "id",
type: "text",
value: "x value",
}).redraw();
I want to know the same... have some filters like the search input, role user, etc and i do not find any documentation...