TypeError: $.fn.dataTable.colVis is not a constructor
TypeError: $.fn.dataTable.colVis is not a constructor
This question has an accepted answers - jump to answer
This discussion has been closed.
This question has an accepted answers - jump to answer
Answers
Its not -
$.fn.dataTable.ColVis
is :-)Allan
I forgot to give you the url
http://datatables.net/release-datatables/extensions/ColVis/examples/jqueryui.html
Thanks for the link - that is an error in that specific example. I'll fix that tomorrow morning.
Allan
Hi Allan
I am trying with
and I get TypeError: jQuery.fn.dataTable.colVis is not a constructor and fire bug is pointing to new
I took the example at
http://datatables.net/release-datatables/extensions/ColVis/examples/new_init.html
Thanks Again
Hi Allan
I looked at colvis.js and found that the def is ColVis instead of colVis that I copied from the first url
Yes, as I noted in my first reply above, the constructor is
$.fn.dataTable.ColVis
.The example is wrong :-(.
Allan
Sorry did not understand it
I am using jQueryUI and the colVis option are not taken into affect
Thanks Again
Correct, as it is not the DataTable that is initialising the ColVis instance - you are doing it manually.
You want to pass the ColVis options in as the second parameter to the ColVis constructor:
Allan
Hi again
I have seen the ColVis category selection on the right
Should been the before asking
Thanks again