mercredi 14 juin 2017

R Shiny disable selected checkbokGroupInput

I want to disable preselected checkboxGroupInputs: i.e:

checkboxGroupInput(inputId  = "ID", 
                   label    = NULL, 
                   choices  = checkbox_list_items, 
                   selected = pre_select_these_items)

Then I want to have the items pre_select_these_items to be disabled, i.e. something like this:

checkboxGroupInput(inputId  = "ID", 
                   label    = NULL, 
                   choices  = checkbox_list_items, 
                   selected = pre_select_these_items,
                   disable  = pre_select_these_items)

This disable option does not exists.

Indeed there are similar questions like this, but most of them ask how to disable on an event, what I need is before any event occurs.

Thanks for any help!




Aucun commentaire:

Enregistrer un commentaire