Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ijlyttle opened this issue Jun 9, 2016 · 2 comments
Open

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

ijlyttle opened this issue Jun 9, 2016 · 2 comments
Labels

Comments

@ijlyttle
Copy link
Owner

ijlyttle commented Jun 9, 2016

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
Copy link
Owner Author

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

@ijlyttle ijlyttle added the 0.1.3 label May 16, 2020
@ijlyttle
Copy link
Owner Author

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

@ijlyttle ijlyttle mentioned this issue May 16, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant