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

Add a focus / scrollToComponent API #106

Open
wwwillchen opened this issue Apr 6, 2024 · 0 comments
Open

Add a focus / scrollToComponent API #106

wwwillchen opened this issue Apr 6, 2024 · 0 comments
Labels
hackathon Needed for Google hackathon

Comments

@wwwillchen
Copy link
Collaborator

For things like a chat use case #100, it would be convenient to scroll and/or change the focus.

It could be something like:

me.scrollToComponent(key)

The only thing is if key is not unique (right now it only needs to be unique amongst its sibling components), then it will create an ambiguity of where to scroll. We could scroll to the first one (somewhat arbitrarily) and then display a warning somewhere (we'd need to create some kind of warning UI, similar to what we have for displaying errors, but less intrusive).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hackathon Needed for Google hackathon
Projects
None yet
Development

No branches or pull requests

1 participant