Skip to content

Dynamically show sub-menu with busy indicator #6131

@rv97

Description

@rv97

Feature Request Description

Our team (LWV-SAP Analytics Cloud) uses ui5-webcomponents. We have a situation where on click of a menuItem, we have to show a sub-menu which is dynamic in nature and until that is shown, a busy indicator needs to be displayed.
Let me explain in detail.

  1. When I click on a menu Item, an async call happens.
  2. Until the async call is in progress, I need to show a busy indicator.
  3. Once the async call is finished, I need to show the menu Items based on the result of the async call.

I tried to do the same with current Menu and MenuItem. But it seems to be behaving weirdly. You can find the current issue here.
https://sap-my.sharepoint.com/:v:/p/vignesh_r02/EVqrMufbaMlOlDrM4uZp3XUBL2exhmNHPu95VUzpR_IIDw?e=DHsBpY

Proposed Solution

We need to have a way to show the sub menu items with the busy indicator first and then the menuItems dynamically. Like this.
https://sap-my.sharepoint.com/:v:/p/vignesh_r02/EXjtACkDM8NBgTMtKkSSd_IBlv7VZFrlUl-0gNl1N1jhEA?e=TqIcll

Proposed Alternatives

We have tried adding the Busy Indicator inside the MenuItem. But it does seem to render at random places and does not re-render when the actual data comes.

Priority

  • Low
  • Medium
  • High
  • Very High

A clear and concise description of the impact/urgency of the required feature.

Stakeholder Info (if applicable)

  • Organization: SAP Analytics Cloud
  • Business impact: Will not able to release the feature because it depends on this dynamic loading of sub-menu.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Completed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions