alter dataTable after initialization
alter dataTable after initialization
lcdservices
Posts: 2Questions: 2Answers: 0
I have a script on my site that initializes and builds a dataTable. in a separate script I want to be able to alter aspects of the table after it's built. specifically, I want to hide a column.
I tried the usual $(document).ready(function(){ /hide column/ }); but it has no awareness of the data columns. is there any way to either get awareness that the table has been built (and can then be interacted with) or to impact with direct dataTable function calls?
This discussion has been closed.
Answers
https://datatables.net/examples/api/show_hide.html
See also the
column().visible()
API method.Allan