Skip to content

Commit a978888

Browse files
bborgesrdmpe
authored andcommitted
Closes #129: Trigger shown/hidden event for Shiny outputs in the sidebar (#194)
1 parent da45eb5 commit a978888

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
shinydashboard 0.5.3.9000
22
=========================
33

4+
* Fixed [#129](https://github.com/rstudio/shinydashboard/issues/129): Trigger shown/hidden event for Shiny outputs in the sidebar. ([#194](https://github.com/rstudio/shinydashboard/pull/194))
5+
46
* Fixed [#73](https://github.com/rstudio/shinydashboard/issues/73): add `collapsed` argument to `dashboardSidebar()`, which allows it to start off collapsed. ([#186](https://github.com/rstudio/shinydashboard/pull/186))
57

68
* Fixed [#62](https://github.com/rstudio/shinydashboard/issues/62): make images resize when the sidebar collapses/expands. [#185](https://github.com/rstudio/shinydashboard/pull/185)

inst/shinydashboard.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ $(function() {
6161
$(window).trigger("resize");
6262
});
6363

64+
$(document).on("click", ".treeview > a", function() {
65+
$(this).next(".treeview-menu").trigger("shown");
66+
});
67+
6468
// menuOutputBinding
6569
// ------------------------------------------------------------------
6670
// Based on Shiny.htmlOutputBinding, but instead of putting the result in a

0 commit comments

Comments
 (0)