Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
¿Cómo usar checkbox:nth-child con checkboxGroupInput en línea?

Al seguir esta pregunta, si checkboxGroupInput tiene inline=TRUE , disable(selector="#a .checkbox:nth-child(1) label") ya no deshabilitará la opción. ¿Hay algún ajuste en la cadena de selección? Intenté cambiarlo a checkbox-inline pero eso no funcionó.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Con el parámetro inline=TRUE , los elementos de la label no están bajo un div , por lo que puede hacer la referencia directamente a las etiquetas.

 library(shiny) ui <- shinyUI(fluidPage( shinyjs::useShinyjs(), checkboxGroupInput("a", "A", choices = 1:7, inline = TRUE) )) server <- shinyServer(function(input, output, session) { observeEvent(input$a, shinyjs::disable(selector="#a label:nth-child(1)")) }) shinyApp(ui, server)
about 4 years ago · Juan Pablo Isaza Report

0

Claro, solo tiene que ajustar el recopilador de consultas JS. Trate de ajustar esto en consecuencia

 subElement <- paste0("#a .checkbox-inline:nth-child(", newSelection,") input")
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!