Skip to content

Disabling checkboxGroupButtons #281

@DanChaltiel

Description

@DanChaltiel

Hi devs,

First thanks for this great package, it's incredible!

My request is in the same trend as #68: how can I disable a button from a checkboxGroupButtons?

Since buttons do not have a unique id (which could be name-value for instance), they are quite hard to select with JQuery.

For now, here is my workaround:

ui.R

checkboxGroupButtons("total", label="Total", choices=c("row"="row", "column"="col"))

server.R

shinyjs::runjs("$(\"input[name='total'][value='row']\").parents('button').prop('disabled', true);")

Would you consider adding such an id, or maybe even implement such a disable feature in standalone or in updateCheckboxGroupButtons?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions