You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow this project's Contributing Guidelines.
Project Version
No response
Platform and OS Version
No response
Existing Issues
No response
What happened?
We are using bslib:page_fillable . Without shiny.router , plots and cards are fillable. With shiny.router, plots and cards are no longer fillable.
Steps to reproduce
Create a UI using bslib::page_fillable.
Add a shiny.router::router_ui.
Wrap a plotly inside shiny.router::route.
Create server to render plotly.
Run app.
Expected behavior
The plots inside the router should still fill the page.
Attachments
# Plot occupies full heightui<-bslib::page_fillable(
bslib::card(
shiny::h1("Hello"),
plotly::plotlyOutput("my_plot")
)
)
server<-function(input,output) {
output$my_plot<-plotly::renderPlotly(
plotly::plot_ly(mtcars, x=~cyl, y=~mpg, type="scatter", mode="markers")
)
}
shiny::shinyApp(ui, server)
# Plot only occupies about the top half of the window with routerui<-bslib::page_fillable(
shiny.router::router_ui(
shiny.router::route(
"/",
shiny::h1("Hello")
),
shiny.router::route(
"plots",
plotly::plotlyOutput("my_plot")
)
)
)
server<-function(input,output, session) {
shiny.router::router_server()
output$my_plot<-plotly::renderPlotly(
plotly::plot_ly(mtcars, x=~cyl, y=~mpg, type="scatter", mode="markers")
)
}
shiny::shinyApp(ui, server)
Screenshots or Videos
No router
With router
Additional Information
Workaround for plots to fill page is to add classes to .html-fill-container and .html-fill-item to both .router-page-wrapper and .router. It would be nice to have an easy way to add classes to these router classes.
Guidelines
Project Version
No response
Platform and OS Version
No response
Existing Issues
No response
What happened?
We are using
bslib:page_fillable
. Withoutshiny.router
, plots and cards are fillable. Withshiny.router
, plots and cards are no longer fillable.Steps to reproduce
bslib::page_fillable
.shiny.router::router_ui
.plotly
insideshiny.router::route
.plotly
.Expected behavior
The plots inside the router should still fill the page.
Attachments
Screenshots or Videos
No router
With router
Additional Information
Workaround for plots to fill page is to add classes to
.html-fill-container
and.html-fill-item
to both.router-page-wrapper
and.router
. It would be nice to have an easy way to add classes to these router classes.The text was updated successfully, but these errors were encountered: