colVis plugin new init with options parameter
colVis plugin new init with options parameter
h312m4one
Posts: 2Questions: 1Answers: 0
Hii. How can set option parameter with new init method?
for exmple:
$(document).ready( function () {
var table = $('#example').dataTable( {
"oColVis": {
"buttonText": "Change columns"
}
} );
var colvis = new $.fn.dataTable.ColVis( table );
$('#colVis').html(colvis.button());
} );
I try with this way. its not working.
This discussion has been closed.
Answers
Pass it in as the second parameter to the
$.fn.dataTable.ColVis
constructor.Allan
Work perfect like this!!
var colvis = new $.fn.dataTable.ColVis( table, { "buttonText": "Change columns" });
Thanks...