Skip to content

Commit ce95f55

Browse files
committedJun 13, 2016
rearrange order of shiny apps in readme
1 parent d73043a commit ce95f55

File tree

6 files changed

+108
-103
lines changed

6 files changed

+108
-103
lines changed
 

‎README.md

+101-96
Large diffs are not rendered by default.

‎multiple-scrollspy-advanced/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Multiple scrollspy - advanced
1+
# Multiple scrollspy on same page - advanced
22

33
The Bootstrap *scrollspy* plugin does not support multiple scrollspy objects per page.
44
This Shiny app demonstrates how to support scrollspy on multiple tabs by allowing each tab to have its own independent scrollspy control and using JavaScript to ensure only the scrollspy on the current tab is activated. Look at the code to see how this is achieved.

‎multiple-scrollspy-basic/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Multiple scrollspy - basic
1+
# Multiple scrollspy on same page - basic
22

33
The Bootstrap *scrollspy* plugin does not support multiple scrollspy objects per page. This Shiny app demonstrates how to support scrollspy on multiple tabs by having one common scrollspy control that gets updated via JavaScript whenever a tab is changed to reflect the contents of the new tab. Look at the code to see how this is achieved.
44

‎navigate-history/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Navigation in a Shiny app
1+
# Navigation in a Shiny app (forward/backwards in history)
22

33
Sometimes it's nice to be able to support navigation within a Shiny app, especially when there are multiple tabs or some other form of "multiple pages" in a Shiny app. Since Shiny apps are a single page, the browser nagivation buttons (previous/next page) don't work when "navigating" within a Shiny app. You also can't bookmark a certain "page" in a Shiny app - every time you go to an app, you will be shown the initial state of the app.
44

‎shinydashboard-sidebar-hide/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Hide/show shinydashboard sidebar programatically
1+
# Hide/show shinydashboard sidebar programmatically
22

3-
A common question regarding `shinydashboard` is how to programatically hide/show the sidebar.
3+
A common question regarding `shinydashboard` is how to programmatically hide/show the sidebar.
44

55
To solve this problem, I first looked at the HTML and tried to see what happens when the button to toggle the sidebar is clicked. It seems like the `<body>` HTML tag gains and loses a CSS class "sidebar-collapse" when the toggle button is clicked. Therefore, all we have to do to show/hide the sidebar is simply remove/add that class to the document's body tag. This can easily be done using the [shinyjs](https://github.com/daattali/shinyjs) package.
66

‎split-code/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Split app code across multiple files
1+
# Split app code across multiple files (when codebase is large)
22

3-
When creating
3+
When creating Shiny apps with a lot of code and a complex UI, it can sometimes get very messy and difficult to maintain your code when it's all in one file. What you can do instead is have one "main" UI and "main" server and split your UI and server code into multiple files. This can make your code much more manageable and easier to develop when it grows large. You can split the code however you want, but I usually like to split it logically: for example, if my app has 4 tabs then the UI for each tab would be in its own file and the server code for each tab would be in its own file. The example code here shows how to separate the code of an app with two tabs into 2 UI files and 2 server files (one for each tab).

0 commit comments

Comments
 (0)