Currently using Primefaces 5.1, and I've encountered a situation where I want to hide a table until after the filter is applied in Javascript. My initial thought was to simply set the css of the table to visibility:hidden;
, followed by running the following code in Javascript:
PF('myDataTable').filter();
$('.myDataTableCssClass').css('visibility', 'visible');
However, the table ends up being displayed with visibility:visible;
before the filter is actually applied. I need a way to dynamically adjust the CSS after the filter has been successfully implemented, but I'm struggling to find a suitable callback method that works.
If you have any suggestions or insights, please share them!
Thank you for your help!