Search code examples
yadcf

How to Hide the filters dynamically?


I have a switch to go to edit mode that is supposed to show the filters.

I am able to show them, but I do not know how to hide them when I quit the edit mode.

I tried the following but it is not working :

$('#myTable').find('.yadcf-filter').hide();

Any ideas?


Solution

  • Since all yadcf filters are being wrapped with a container that got the .yadcf-filter-wrapper class, the following should do

    $('.yadcf-filter-wrapper').hide();
    

    p.s

    I'm yadcf author