Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCloses #129: Trigger shown/hidden event for Shiny outputs in the sidebar #194
Conversation
| @@ -61,6 +61,10 @@ $(function() { | |||
| $(window).trigger("resize"); | |||
| }); | |||
|
|
|||
| $(document).on("click", ".treeview > a", function() { | |||
| $(this).next().trigger("shown"); | |||
wch
Mar 3, 2017
Contributor
It would be a little safer to use .next('.treeview-menu').
It would be a little safer to use .next('.treeview-menu').
One thing I'm unhappy about is the jagged look of the expanded menu item when we first click it (so smooth transition, since the element actually has to be created)...
Example: