observeEvent(input$pageTabs, {
if (input$pageTabs == 'Bootstrap') {
source("R/server/page-bootstrap.R", local = TRUE)
} else if (input$pageTabs == 'Navbar') {
source("R/server/page-navbar.R", local = TRUE)
} else if (input$pageTabs == 'Sidebar') {
source("R/server/page-sidebar.R", local = TRUE)
}
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.