Skip to content

Question : If resizable = TRUE and colDef(width) are used, resizable disabled. #223

Description

@daeyoonlee

Thanks for the great package.

Currently setting width in colDef seems to disable resizable. minwidth and maxwidth are also forced.
Is this intentional? I want to width only as an initial value and allow resizable. but there seems to be no way.
If only min width and maxwidth are used, resizable is possible, but the initial value is minwidth.

library(shiny)
library(reactable)

ui <- fluidPage(
  reactableOutput(outputId = "table"),
)

server <- function(input, output, session) {
  
  output$table <- renderReactable(
    reactable(
      data = iris,
      bordered = TRUE,
      resizable = TRUE,
      columns = list(
        Species = colDef(minWidth = 150, width = 200, maxWidth = 250)
      )
    )
  )
  
}

shinyApp(ui, server)

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions