Using ColVis option in tabs
Using ColVis option in tabs
Hello,
I have an issue with a Colvis option when using tables in tabs. Please let me explain...
My sample HTML code:
[code]
T1
F1
S1
//My table 1
//My table 2
//My table 3
[/code]
My JQuery code:
[code]
$(function(){
$("table[id*=mydatatablegroupea]").dataTable({
"bSort": true,
"aaSorting": [],
"bPaginate": false,
"bAutoWidth": false,
"sDom": 'C<"clear">lfrtip',
"oColVis": {"buttonText": "MyNewColVisLabel"}
});
$("#tabs").tabs();
});
[/code]
All works fine with the tabs displaying except for one thing:
"oColVis": {"buttonText": "MyNewColVisLabel"}
The modified button text is only applied on the first table (placed on the first tab). All other tables (displayed on the other tabs) keep the default label ("Show / hide columns").
Could you please help?
Thanks.
Regards.
I have an issue with a Colvis option when using tables in tabs. Please let me explain...
My sample HTML code:
[code]
T1
F1
S1
//My table 1
//My table 2
//My table 3
[/code]
My JQuery code:
[code]
$(function(){
$("table[id*=mydatatablegroupea]").dataTable({
"bSort": true,
"aaSorting": [],
"bPaginate": false,
"bAutoWidth": false,
"sDom": 'C<"clear">lfrtip',
"oColVis": {"buttonText": "MyNewColVisLabel"}
});
$("#tabs").tabs();
});
[/code]
All works fine with the tabs displaying except for one thing:
"oColVis": {"buttonText": "MyNewColVisLabel"}
The modified button text is only applied on the first table (placed on the first tab). All other tables (displayed on the other tabs) keep the default label ("Show / hide columns").
Could you please help?
Thanks.
Regards.
This discussion has been closed.