Datatable . Visible() does not work

Asked

Viewed 59 times

0

I’m using this library angular-datatables, but the function visible is not hiding the desired columns while loading the page.

Follow the code that should hide the columns:

$(document).ready(function () {
    var column = $('#DataTables_Table_0').DataTable().columns([1,2,3]).visible(false);
});
  • Are you using in Angular? This function is jQuery, you are using both?

  • Yes, I am using both. But if I create a function and call it in the click for example also does not work.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.