Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Multiple ListGroup cannot expand / contract independently #218

Open
johnknapp opened this issue Apr 14, 2021 · 3 comments
Open

Multiple ListGroup cannot expand / contract independently #218

johnknapp opened this issue Apr 14, 2021 · 3 comments

Comments

@johnknapp
Copy link

  • The Materialify left side nav has multiple ListGroup items toggle active independently.
    • I wish to do something similar
    • My guess would be for each ListGroup to bind to a distinct variable name.
    • This approach does not give me the desired result.
  • The ListGroup documentation mentions "nested" but I am unable to achieve the desired result.
  • My NavigationDrawer preference is {mini} but removing that does not help.

How can I achieve multiple collapsable ListGroups in one List?

@johnknapp
Copy link
Author

Any thoughts on this @Florian-Schoenherr?

@Florian-Schoenherr
Copy link
Collaborator

I think the problem lies more in the implementation, so a REPL would be helpful (also for understanding the usecase better).

If you want to have a Navigation, it should be pretty similar to this.
If not:

  1. I don't know if the NavigationDrawer is the right place for it (depending on the usecase, might still make sense).
  2. You would need to bind to each ListGroup's active prop with a distinct variable.

@Florian-Schoenherr
Copy link
Collaborator

btw. I'm all for Nested Navigation becoming a feature, but I already said that to too many things 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants