Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility for columns with no row parent container #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Jan 21, 2020

Minimal example:

library(htmltools)
library(shiny)

browsable(fluidPage(
  div(class = "col-sm-4", "Left"),
  div(class = "col-sm-8", "Right")
))
browsable(fluidPage(
  bootstraplib::bootstrap(),
  div(class = "col-sm-4", "Left"),
  div(class = "col-sm-8", "Right")
))

With side/main panel

ui <- fluidPage(
  sidebarPanel(
    bootstraplib::bootstrap(),
    "Sidebar"
  ),
  mainPanel(
     "Main panel"
  )
)
shinyApp(ui = ui, server = function(input, output) {})

With navs

ui <- navbarPage(
  "bs3compat",
  tabPanel("Navbar 1",
           sidebarPanel(
             bootstraplib::bootstrap(),
             "sidepanel"
           ),
           mainPanel(
             tabsetPanel(
               tabPanel("Tab 1",
                        "Tab 1"
               ),
               tabPanel("Tab 2", "Tab 2"),
               tabPanel("Tab 3", "Tab 3")
             )
           )
  ),
  tabPanel("Navbar 2", "Nav 2"),
  tabPanel("Navbar 3", "Nav 3")
)

shinyApp(ui = ui, server = function(input, output) {})

@CLAassistant
Copy link

CLAassistant commented Jun 20, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants