While trying the column search, I'm getting "ERROR Error: Cannot read property 'then' of undefined". Could you please suggest me the issue...
datatableElement.dtInstance.then((dtInstance: DataTables.Api) => {
dtInstance.columns().every(function () {
const that = this;
$("input", this.footer()).on("keyup change", function () {
if (that.search() !== this["value"]) {
that.search(this["value"]).draw();
}
});
});
});
