[Feature Request]: Provide Group Header Click Event to SideNavigationGroup
@olannyv is already working on this.
Since Dec 18, 2024.
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 285
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 59
Description
Feature Request Description
SideNavigationGroup currently lacks an event that specifically captures clicks on its header. This limitation presents challenges when developers need to manage and respond to user interactions with the group's header.
Proposed Solution
Introduce a specific event for when the group's header is clicked. This event should be triggered only when the header of the group is clicked.
Proposed Alternatives
No response
Organization
SAP Automation Pilot
Additional Context
We have implemented a SideNavigationGroup within the SideNavigation bar in our application. To enhance user experience, we need to persist the collapsed or expanded state of each group. However, since the current SideNavigationGroup does not provide any specific events, we are forced to rely on the generic click event in JavaScript.
The problem arises when the group is expanded, as the expanded state reveals an additional container with items that include spacing between them. Clicking on these empty spaces triggers the click event unnecessarily, leading to unreliable state management.
Priority
Medium
Privacy Policy
- I’m not disclosing any internal or sensitive information.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.