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

[HxSidebar] Clicking non-expandable node when MultipleItemsExpansion should collapse current node #864

Open
hakenr opened this issue Aug 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@hakenr
Copy link
Member

hakenr commented Aug 5, 2024

The current implementation uses Bootstrap's collapse parent, where setting the parent makes the collapse behave like an accordion (collapsing the other sections under the same parent). However, this doesn't handle scenarios where some nodes aren't expandable (no child nodes). Navigating to such a standalone node should probably cause the currently expanded node to collapse.

cc @alexax578

@hakenr hakenr added the enhancement New feature or request label Aug 5, 2024
@hakenr hakenr added this to the Priority 3 - Low milestone Aug 5, 2024
@hakenr
Copy link
Member Author

hakenr commented Aug 5, 2024

For our current PWT project, we will resolve this in derived component. To support such customization, we need to expose (protected virtual) the HandleCollapseShown and HandleCollapseHidden methods (together with already exposed protected bool expanded field).

hakenr added a commit that referenced this issue Aug 5, 2024
…sion should collapse current node - exposing seams for custom solution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant