Empty yadcf settings array
See original GitHub issueI’d like to have the ability to give empty settings array object to the plugin so yacdf is not active even though it’s applied to the datatable, like this:
var myDataTable= $('table').dataTable({
}).yadcf( [ ]);
Because I’m providing dynamic options array based on a set of conditions and there’s a case where no yadcf filter should appear at all. I’m currently tricking it by providing out of bound col number:
yadcfColumnsOptions = [{
column_number: 500
}
But this causes a js error in the plugin.
Thanks,
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
YADCF Multiselect Return Empty Record - php - Stack Overflow
The datatable and YADCF does not return any record when using multiselect filter from YADCF plugins. Here the screenshot Empty Record when ...
Read more >yadcf - Yet Another DataTables Column Filter - GitHub
predefined data source for filter (array of strings or objects); mData support (including deeply nested objects); ability to place the filter in an...
Read more >Yet Another DataTables Column Filter (yadcf) 0.9.3.beta
predefined data source for filter (array of strings or objects); mData support (including deeply nested objects); ability to place the filter in an...
Read more >Custom Filter using ext.search help - DataTables
I am trying to make a custom filter/search for multiple checked values, but nothing is happening. $.fn.dataTable.ext.search.push( function( ...
Read more >Using jQuery DataTables and yadcf
... of data using the jQuery yadcf plugin, that runs with DataTables. ... is not possible to add another filter, or clear the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Got it, thanks for your reply. I think this issue can be cancelled as invalid.
Worked well, just a note for whoever reading this thread: Make sure to instantiate your datatable with capital D (as stated on yacdf site) like this:
Thanks again!