bsplus icon indicating copy to clipboard operation
bsplus copied to clipboard

way to handle not wanting to deal with unique id's

Open ijlyttle opened this issue 9 years ago • 2 comments

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

ijlyttle avatar Jun 09 '16 20:06 ijlyttle

Consider using the ids package, perhaps ids::proquint(2, 4).

ijlyttle avatar May 16 '20 16:05 ijlyttle

The accessor for attaching, give that some thought and maybe defer.

ijlyttle avatar May 16 '20 19:05 ijlyttle