How can I show all the panes in an "all" tab using jQuery UI tabs?
4 Answers
I've got a solution. What I did was:
var user_tabs = $("#user-tabs").tabs({
select: function(event, ui) {
if (ui.index == 0) {
$("div[id^=tabs-pane-]").show();
} else {
$("div[id^=tabs-pane-]").hide();
$(ui.panel).show()
}
}
});
Have you tried to show all the divs in your main tab div ?
function ShowAll(){
$('div#tabs div').show()
}
It could be a nice and simple solution.
for jquery ui tabs 1.12.1:
$("#user-tabs").tabs(
{activate:
function(event, ui) {
if ( "do some checking here if the special show-all tab was selected") {
$("div[id^='tabs-pane-']").show();
}
}
}
)