UI5 / UI5/webcomponents

[Feature Request]: Provide Group Header Click Event to SideNavigationGroup

Open
#10,409 1 comment 0 reactions 1 assignee View on GitHub

@olannyv is already working on this.

Since Dec 18, 2024.

Autopilot feature request Medium Prio TOPIC RD
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.