Skip to content

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

@daeyoonlee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions