Skip to content

shinyDataFilter along with argonDash breaks the display #21

@shahronak47

Description

@shahronak47

Hi Doug, first of all this issue is just fyi and feel free to close it since I feel it is too specific.

We are using argonDash and argonR packages along with shinyDataFilter which is creating an issue. Please see below small reproducible example -

library(shiny)
library(argonDash)
library(argonR)
library(shinyDataFilter)
library(DT)

df <- data.frame(a = factor(letters[1:8]), b = 1:8)

ui <- argonDashPage(
  title = "test",
  description = NULL,
  author = NULL,
  navbar = NULL,
  sidebar = NULL,
  header = NULL,
  
  argonDashBody(
    argonCard(width = 12,
              #tags$style(" .card {overflow-y: scroll}"),
              argonRow(
                argonColumn(width = 8,
                            DTOutput("data_summary")),
                argonColumn(width = 2,
                            shiny_data_filter_ui("data_filter")
                )
              )
    )
  ),
  footer = NULL
)

server <- function(input, output, session) {
  filtered_data <- callModule(
    shiny_data_filter,
    "data_filter",
    data = df,
    verbose = TRUE
  )
  
  output$data_summary <- renderDT({
    filtered_data()
  })
}

shinyApp(ui = ui, server = server)

image

We are solving this using css but letting you know if you want to apply a permanent fix for this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions