Comments (3)
Unfortunately those docs are just very outdated. The responsive
argument was marked as deprecated in 2014 (when shiny upgraded from Bootstrap 2 to Bootstrap 3) and then fully removed from fluidPage()
and fixedPage()
in shiny 1.7.0 (released 3 years ago).
I think the article date on that page isn't quite telling the truth, which leads to additional confusion. I'll make sure we have an internal ticket to update that article.
from shiny.
Given that this isn't an option anymore. Do you have any suggestions on another way to turn off the responsive bootstrap features for a shiny app?
from shiny.
This argument however doesn't work to turn off responsive bootstrap features. When the window in the example shiny app code above becomes smaller than 768px the wellPanel() is resized stacking the widgets.
FWIW, responsive = FALSE
was about turning off the responsive page width (i.e., the container that adds margins to the page), not about preventing the collapse of grid layout on small devices (I don't think we've ever supported that). Today, if you wanted that same responsive = FALSE
, you'd use bootstrapPage()
, not fixedPage()
/fluidPage()
.
Thankfully, it seems like a new Bootstrap stacking feature might be exactly what you're looking for. We don't have an official wrapper for it, but you could write the HTML:
library(shiny)
library(bslib)
ui <- page_fixed(
titlePanel("Old Faithful Geyser Data"),
div(
class = "hstack p-3 gap-3 justify-content-center bg-light border rounded",
sliderInput(
"a", "slider 1",
min = 1,
max = 10,
value = 3
),
sliderInput(
"b", "slider 2",
min = 1,
max = 10,
value = 5
),
checkboxGroupInput(
"c", "checkbox 1",
choices = c("a", "b", "c", "d"),
selected = "a"
)
)
)
shinyApp(ui, function(input, output) {})
from shiny.
Related Issues (20)
- Update input - HTML in label
- After upgrading to R 4.3.3 and Shiny 1.8.0 on ubuntu, I am not able to run shiny. Error in is.call(funBody[[idx]]) && as.character(funBody[[idx]][[1]]) == : 'length = 3' in coercion to 'logical(1)' HOT 2
- Error message text color is too subtle with Bootstrap 5
- Error with a htmlwidget HOT 2
- reactlog doesn't work with latest shiny
- `shinyDeprecated()` should probably `warn()`, not `inform()` HOT 1
- After upgrading to Shiny 1.8.1 from 1.8.0, no data is visible on my shiny APP HOT 23
- Shiny app shows a blank page when re-opened with `rstudioapi::viewer()` HOT 2
- Output of ModuleServer doesn't always update using numericInput
- Shiny 1.8.1 seems to break reactivity between my linked modules HOT 4
- JavaScript error dialog header is hidden when using {shinydashboard}
- Example for ExtendedTask HOT 3
- Bookmarking a frozen input throws an error
- With Bootstrap 5, `uiOutput()` doesn't dim in opacity when recalculating
- Plot overlaps onto tab panel. HOT 2
- shiny > 1.8.0 breaks tags$button reactivity HOT 6
- Set outputOtions at assignment
- Long running Shiny app starts printing lots of "nothing to compact" messages HOT 1
- Allow `OnUnhandledError` to be scoped to modules
- Warning: Error in ggplot2::geom_boxplot: Problem while converting geom to grob.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shiny.