Add a some kind of a function callback in columns.visible method
Add a some kind of a function callback in columns.visible method

I have a button which pretty much shows a few columns in my dataTalbe. What I want to do is to show a loading screen while the rendering of dataTable is still ongoing so I need somewhat of a function callback or could you tell me which function does get called in dataTable after calling column.visible() .
This discussion has been closed.
Answers
Ok thought that drawcallback is not working , but I was wrong , closed.
Hi @Gabriel23 ,
You could use
buttons-action
to start the process, andcolumn-visibility
for the end. The full list of events are here.Cheers,
Colin
I have problems , I don't know exactly where to define it , if I define in document.ready is not working
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
The strange thing is that if I define function in console it works ok