Giter VIP home page Giter VIP logo

Comments (5)

 avatar commented on May 29, 2024

False to true I meant in the start. I build all checkboxes starting without a value

from shinywidgets.

pvictor avatar pvictor commented on May 29, 2024

Hi, I've try to recreate the situation you described, this seems to work, can you provide an example where it doesn't ?

library(shiny)
library(shinyWidgets)
ui <- fluidPage(
  tags$h2("dropdown update test"),
  fluidRow(
    column(
      width = 6,
      dropdownButton(
        uiOutput(outputId = "params"),
        icon = icon("sliders")
      ),
      verbatimTextOutput(outputId = "res")
    ),
    column(
      width = 6,
      checkboxInput(inputId = "update", label = "update")
    )
  )
)

server <- function(input, output, session) {
  
  output$params <- renderUI({
    checkboxInput(inputId = "my_cb", label = "a checkbox", value = FALSE)
  })
  outputOptions(x = output, name = "params", suspendWhenHidden = FALSE)
  
  observeEvent(input$update, {
    updateCheckboxInput(session = session, inputId = "my_cb", value = input$update)
  }, ignoreInit = TRUE)
  
}

shinyApp(ui, server)

from shinywidgets.

 avatar commented on May 29, 2024

I fixed it but can't remember how exactly. I this it was because i build the checkboxes without a value argument which causes updating of it to true fail perhaps .

Anyways..... Did you have any luck with looking at the easy close false solution to add to the dropdown buttons?

from shinywidgets.

pvictor avatar pvictor commented on May 29, 2024

No it's not working yet, I can prevent dropdown's closing but after it's really impossible to close it, i'll have 2~3 idea to go further. I close this for now and i'll keep you posted for the easyClose option.

from shinywidgets.

 avatar commented on May 29, 2024

from shinywidgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.