bsplus
bsplus copied to clipboard
way to handle not wanting to deal with unique id's
I think that Shiny has some sort of way to help ensure uniqueness of generated id's (must try to remember to ask Joe). If that is the case, then the id argument to a lot of these functions can become non-mandatory.
In this case, it might be helpful to provide an id accessor function so that you can do something like this:
my_collapse <-
collapse() %>%
collapse_append(tags$div(class = "well", "Yeah Yeah Yeah"))
tags$button("She Loves You") %>%
attach_collapse(id(my_collapse))
my_collpase
Consider using the ids package, perhaps ids::proquint(2, 4).
The accessor for attaching, give that some thought and maybe defer.