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

Document htmlIdGenerator use cases #639

Closed
cjcenizal opened this issue Apr 9, 2018 · 0 comments · Fixed by #3076
Closed

Document htmlIdGenerator use cases #639

cjcenizal opened this issue Apr 9, 2018 · 0 comments · Fixed by #3076
Labels
documentation Issues or PRs that only affect documentation - will not need changelog entries

Comments

@cjcenizal
Copy link
Contributor

Some questions arose in #637 which we should answer with documentation. I think we need to add a page for htmlIdGenerator under the "Utilities" section of the docs site, which presents realistic examples of the use cases @timroes mentioned in #637 (comment):

  • One generator used to create a one-off ID, e.g. htmlIdGenerator()()
  • One generator using a prefix to create a series of IDs that are namespaced, e.g. a form component which will be instantiated in multiple places within the same UI
  • Two different generators using the same suffix, resulting in unique IDs
  • A generator using both a prefix and a suffix, though I'm not sure if there is a use case for this?
@cjcenizal cjcenizal added the documentation Issues or PRs that only affect documentation - will not need changelog entries label Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues or PRs that only affect documentation - will not need changelog entries
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants