UI5 / UI5/webcomponents

SideNavigationItem: Contain other components like Badge

Open
#2,703 3 comments 0 reactions 1 assignee View on GitHub

@olannyv is already working on this.

Since Sep 1, 2021.

feature request TOPIC RD
Dominant language
TypeScript
Stars
1.8k
Forks
285
Avg merge
3d 2h
Merged PRs (30d)
59

Description

Is your feature request related to a problem? Please describe.
I'm on a task that a Badge component need to be added after the SideNavigationSubItem but I found that SideNavigationSubItem only accepts designed props. Other components don't work inside SideNavigationItem .
This is the SideNavigationItem component I'm working on.

<SideNavigationItem id={item.id} key={item.id} text={item.text} icon={item.icon} >
  {item.sub.map((data) => (
    <SideNavigationSubItem
      className={classes.sideBarNavItem}
      id={data.id}
      key={data.id}
      text={data.text}
      selected={data.id === navItemSelected} />
  ))}
</SideNavigationItem>)

Describe the solution you'd like
I drew a prototype. The Badge named 'Beta' is attached after SideNavigationSubItem
badge1

Additional context
I'm wondering weather the feature above is feasible. Looking forward to your reply, thanks!

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.