Skip to content

Commit

Permalink
rearrange order of shiny apps in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Jun 13, 2016
1 parent d73043a commit ce95f55
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 103 deletions.
197 changes: 101 additions & 96 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion multiple-scrollspy-advanced/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Multiple scrollspy - advanced
# Multiple scrollspy on same page - advanced

The Bootstrap *scrollspy* plugin does not support multiple scrollspy objects per page.
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.
Expand Down
2 changes: 1 addition & 1 deletion multiple-scrollspy-basic/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Multiple scrollspy - basic
# Multiple scrollspy on same page - basic

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.

Expand Down
2 changes: 1 addition & 1 deletion navigate-history/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Navigation in a Shiny app
# Navigation in a Shiny app (forward/backwards in history)

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.

Expand Down
4 changes: 2 additions & 2 deletions shinydashboard-sidebar-hide/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hide/show shinydashboard sidebar programatically
# Hide/show shinydashboard sidebar programmatically

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

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.

Expand Down
4 changes: 2 additions & 2 deletions split-code/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Split app code across multiple files
# Split app code across multiple files (when codebase is large)

When creating
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 comments on commit ce95f55

Please sign in to comment.