0

How can I show all the panes in an "all" tab using jQuery UI tabs?

4 Answers 4

1

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()
        }
    }
});
0

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.

0
0

The following will work.

$("div.ui-tabs-hide").removeClass("ui-tabs-hide");
0

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();
                }
            }
        }
    )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.