Wrapper around the bs4Dash
package, with house style settings and easier to remember names.
devtools::install_github("moturoa/shintoui")
A complete example application can be found from this link.
shinydashboard
or shinydashboardPlus
, or use any functions from them via ::
!shintoui
only, instead of equivalents in those packages:shintoui::box
shintoui::tab_box
shintoui::tab_panel
shintoui::tab_items
shintoui::tab_item
shintoui::dashboard_page
shintoui::dashboard_sidebar
shintoui::sidebar_menuoutput
shintoui::render_menu
shintoui::sidebar_menu
shintoui::dashboard_sidebar
Instead of the usual dashboardHeader
, use the function shintoui::dashboard_header
. This function includes many features, including
Dropdown menu with application information (using shintoshiny::appInfoUI
)
A 'tag line' argument, to display text just right of the menu in the header.
To use the header, and fill application information, etc. use this line in the server function:
shintoui::populate_header(username = shintoshiny::get_user(default = "devuser"))
In your application, choose a sensible app user name (for example 'wbm_dev', 'linkit_dev'), not your own name.
For a Dutch datatable
with bootstrap 4 setttings, use shintoshiny::datatafel
instead of datatable
.
You can still use shiny page elements, including: column
, fluidRow
, actionButton
, and so on. Just don't use anything from shinydashboard
or shinydashboardPlus
- there are many CSS conflicts which will mess up the UI completely.
Always use shintoui::box
to place content inside a module. Never place content directly in fluidRow
or similar, use the box which can be customized. For a box with tabs, use shintoui::tab_box
.
Remko Duursma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.