Forum Discussion
Parshant
5 years agoBoss
SheryBulos, Try this code:
<@liaAddScript>
;(function($){
$(document).ready(function() {
$('table.generic').DataTable();
} );
var setTablesFilters = (attrName, tableId, attrIndex) => {
var table = $('#'+tableId).DataTable();
let uniqueFilterList = table.column(attrIndex).data().unique().toArray();
return uniqueFilterList.map((val)=>{ return {'name':val, 'checked': false}});
}
})(LITHIUM.jQuery);
</@liaAddScript>
Related Content
- 2 years ago
- 12 years ago
- 14 years ago