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

Switch to search when a node has too many children #99

Open
jamesaoverton opened this issue Nov 10, 2021 · 3 comments
Open

Switch to search when a node has too many children #99

jamesaoverton opened this issue Nov 10, 2021 · 3 comments

Comments

@jamesaoverton
Copy link
Member

We have a new use case where we 'human protein' has 20,000+ children from Uniprot's reference proteome. Gizmos can generate HTML for 20,000 children, but most browsers will hang when they try to render it. So if a node has more than X (maybe 100?) children, we need another way to view them.

I've been thinking of searching the children with the table in #96, but I'm still a big fuzzy about exactly what we should show the user. Suggestions?

@beckyjackson
Copy link
Collaborator

We could just have a link under the parent class that says "browse N children" (or something like that) and directs you to the table. Then when you click on a term, it only shows that term under the parent and then the same "browse N children" link under that.

@jamesaoverton
Copy link
Member Author

I'm not sure I understand, but please go ahead and let's see what it looks like.

@beckyjackson
Copy link
Collaborator

This hasn't been implemented in gizmos, but nanobot uses custom JS to do this, which overrides the show_children() function:
https://github.com/ontodev/nanobot/blob/f3dd0689c424765a41d523b59298c2e69e9e1535/nanobot/templates/template.html#L295-L316

@beckyjackson beckyjackson removed their assignment May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants