-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column mData defined as a function not working #95
Comments
Thanks for the very detailed issue, gonna check/fix as soon as I can |
fixed in 0.8.5.beta.5, thanks |
Hi! I've got similar problem on 0.8.9 version with latest DataTables 1.10. I have next code var table= $('#searchTable');
var tableSettings = [{
"data": function (row) {
var devId = row._source.hasOwnProperty('id') ? row._source.id : '';
return '<a href=#>' + devId + '</a>';
}
}];
dTable = table.DataTable({
data: results,
"columns": tableSettings
})
yadcf.init(dTable, [{ column_number: 0, filter_type: "text", column_data_type: "html", html_data_type: "text" }]); result is JSON object, received from elasticsearch. |
Hi, Please provide a jsbin sample to speed up the fix for this one. |
Hi! |
Hi! Any news? |
Ohhh..... You must remove the
into
read docs about it... p.s |
With DataTables 1.10.3 and yadcf 0.8.4 when specifying datatable column's mData (or data) as a function, yadcf's appendFilters function throws an exception when it ends up trying to do split() on the function object here
A simple js that reproduces the issue:
I'm not sure why the _aFilterData check is in it's own if-block so don't know if this introduces something new in another situation, but changing the code as follows fixes it for me:
The text was updated successfully, but these errors were encountered: