Skip to content

Commit

Permalink
Closes rstudio#129: Trigger shown/hidden event for Shiny outputs in t…
Browse files Browse the repository at this point in the history
…he sidebar (rstudio#194)
  • Loading branch information
bborgesr authored and dmpe committed Mar 25, 2017
1 parent da45eb5 commit a978888
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
shinydashboard 0.5.3.9000
=========================

* 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))

* 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))

* 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)
Expand Down
4 changes: 4 additions & 0 deletions inst/shinydashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ $(function() {
$(window).trigger("resize");
});

$(document).on("click", ".treeview > a", function() {
$(this).next(".treeview-menu").trigger("shown");
});

// menuOutputBinding
// ------------------------------------------------------------------
// Based on Shiny.htmlOutputBinding, but instead of putting the result in a
Expand Down

0 comments on commit a978888

Please sign in to comment.