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

tablerCard() zoomable parameter not honoured when closable = TRUE #11

Open
leungi opened this issue Apr 17, 2021 · 0 comments
Open

tablerCard() zoomable parameter not honoured when closable = TRUE #11

leungi opened this issue Apr 17, 2021 · 0 comments

Comments

@leungi
Copy link

leungi commented Apr 17, 2021

Issue

When closable is set to FALSE, zoomable parameter is not honoured.

Reprex (taken from tablerCard() docs)

library(shiny)
library(tablerDash)

shiny::shinyApp(
  ui = tablerDashPage(
    navbar = NULL,
    footer = NULL,
    title = "test",
    body = tablerDashBody(
      tablerCard(
        title = "Card",
        closable = FALSE,  # set to FALSE
        zoomable = TRUE,  # set to TRUE
        sliderInput("obs", "Number of observations:",
                    min = 0, max = 1000, value = 500
        ),
        plotOutput("distPlot"),
        status = "success",
        statusSide = "left"
      )
    )
  ),
  server = function(input, output) {
    output$distPlot <- renderPlot({
      hist(rnorm(input$obs))
    })
  }
)

Screenshot

image

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

No branches or pull requests

1 participant