Open tomasreigl opened 8 years ago
Note to self: related to #1214
hi, do you remember how did you obtain information from the table?
Recently a related question came up on SO. I would be very grateful if someone could explain what is going wrong using Shiny.bindAll
/ Shiny.unbindAll
in this case.
Hello shiny people,
I wanted to dynamically create a table with some widgets inside. Buttons, textInputs and other were OK, but when I was trying to use selectizeInput with option 'multiple = T' (multiple=F is OK) I found some issues. I'll give you three working examples to describe my workflow, problems and solution. Maybe there is some other and cleaner way to do this. (Don't get confused by "filling output" in observe function, in the end it should make sense)
The first code is definitely working, but the widget is ugly with "selectInput(..., selectize = F)" like style:
As I understood, the selectInput widget is modified by renderUI function to selectizeInput, so I tried to solve it by this workaround, but it is not working properly if you recreate the table (by pressing the 'redraw' button):
Redrawing is working for all other widgets, because it is using:
But the Callbacks can't find the selectizeInput widgets since they are not existing in that time, so I had to add my own JS function to unbind the widgets really before the table is created:
This solution is working, but is there any cleaner (i.e. without my own JS) way to do it? Or should be the selectizeInput creation changed inside the Shiny?
Thank you for all your reactions!