Open victorhazbun opened 7 years ago
I'll look into it this afternoon or tomorrow. Could you create a Pull request?
@victorhazbun your changes to the file "src/dataTables.lightColumnFilter.js" can't be commited, you changed all the variables name, and removed all the comments. Can you explain what you changed?
@thansen-solire All right, that was a nasty one :)
Based on the docs of angural-datatables:
http://l-lin.github.io/angular-datatables/archives/#!/withLightColumnFilter
Your current code fails with:
TypeError: Cannot read property 'length' of undefined
I traced one line by one and found the troublemaker, line 201:
$.each(self.options.attr, function(key, value){
self.elements.attr(key,value);
})
there is no check for the existence of attr
Thus, attr
is must exist for now, like:
'0': {
html: 'input',
type: 'text',
attr: {}
}
Will also update this issue: https://github.com/l-lin/angular-datatables/issues/928
Thank you for your work
I encourage you to do a fix and then a pull request.
Thanks :)
For me its adding a row and empty header column
any help guys??
After a long debug I found that the dataTables.lightColumnFilter.js and dataTables.lightColumnFilter.min.js are not working for angular-datatables.js http://l-lin.github.io/angular-datatables/archives/#/withLightColumnFilter
I have created a working version: https://gist.github.com/victorhazbun/b42a50c11933259b8df654acc2b7e350
Can you please fix this issue?