The bsplus package can help you compose HTML for your Shiny UI.
The primary goal of the package is to make it easier for you to use the Bootstrap Javascript API. A companion app shows a tooltip, a popover, and a modal.
This app shows the same functionality as the companion app, while introducing a new structure called "accordion sidebar".
Using the functions in the shiny package, we can build one "dimension" of layers using a navbarPage()
. The accordion-sidebar provides you with an independent dimension.
An accordion-sidebar consists of panel-sets. Each panel-set has a sidebar panel and an main panel. The collection of sidebar panels acts as an accordion; the active sidebar panel "controls" the appearance of its main panel.
The important functions are:
bs_accordion_sidebar()
bs_append()
use_bs_accordion_sidebar()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.