Hide a specific tab in desktop viewer

26 views
Skip to first unread message

Matt Parizeau

unread,
Aug 26, 2014, 3:19:59 PM8/26/14
to pdfnet-w...@googlegroups.com
Q:

Is it possible to hide a specific tab in the desktop viewer's left side panel?

A:

First find the tab id of the tab you want to hide. For example for the search tab it's #tabs-3. Then use the following code:
$('li > a[href="#tabs-3"]').parent().hide();

To also disable the tab (so you can't navigate there using keyboard shortcuts), you can use this code, where "2" is the index of the tab (starting at 0).
$('#tabs').tabs('option', 'disabled', [2]);


Reply all
Reply to author
Forward
0 new messages