-
Notifications
You must be signed in to change notification settings - Fork 486
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
Is there any way to open all or close all panels of the Vertical Nav? #5515
Comments
@ethib137 unfortunately there is no option other than modifying the |
Hey @matuzalemsteles I think you meant "no other option other than modifying the If so, from my testing that still won't work either. Maybe I'm doing something wrong though. I'm trying to make sure I don't mutate any objects, but maybe I'm missing something. https://codesandbox.io/s/vertical-nav-expand-all-snbl0j?file=/src/index.js |
Oh yes, I ended up typing it wrong.
Oh yeah, that won't work it doesn't follow controlled and uncontrolled state behavior it just works as initial state and the rest is controlled internally. I think that at the time when it was developed we had not thought about these use cases. I think we can convert this to a feature request and implement this new API to facilitate this use case. |
That would be great! Thanks @matuzalemsteles ! |
Maybe I have to implement the Collection pattern #5032 first in the VerticalNav component so we can get access to the unique keys of each item, so we could have an |
This issue has been merged and will be released in DXP at https://issues.liferay.com/browse/LPS-183595 |
When defining permissions to a role in Liferay, the current behavior when filtering the vertical nav in the sidebar is to open all sub panels while filtering, and close all panels when done. Do we have a way of doing this with the current vertical nav?
The text was updated successfully, but these errors were encountered: