-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get insertTab() of a navbarMenu() targetted at a navtreePanel() working
- Loading branch information
Showing
10 changed files
with
105 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// nav-navtree is built on a combination of Bootstrap's tab & | ||
// collapse components, but the tab component isn't smart enough to | ||
// know about the deactive when are activated. Note that this logic is | ||
// very similar to shinydashboard's deactivateOtherTabs() (in tab.js) | ||
// know about the deactive when are activated. Note that this logic also | ||
// exists in input_binding_tabinput.js and is repeated here in case this | ||
// component wants to be statically rendered | ||
$(document).on("shown.bs.tab", ".nav-navtree", function(e) { | ||
var tgt = $(e.target); | ||
var nav = tgt.parents(".nav-navtree"); | ||
tgt.tab("show"); | ||
nav.find("li").not(tgt).removeClass("active"); // BS3 | ||
nav.find("li > a").not(tgt).removeClass("active"); // BS4 | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters