library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
scrollToTop = TRUE,
header = dashboardHeader(),
sidebar = dashboardSidebar(minified = TRUE, collapsed = TRUE),
body = dashboardBody(
lapply(1:20, box, width = 12, title = "box")
),
controlbar = dashboardControlbar(),
title = "Scroll to top"
),
server = function(input, output) { }
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.