DevExpress / DevExpress/devextreme-angular-template

submenus

Open
#108 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CSS
Stars
120
Forks
47
Avg merge
50m
Merged PRs (30d)
3

Description

Hi,
I want to create submenus in the left menu.
I changed the navigation like:
export const navigation = [
{
text: 'Home',
path: '/home',
icon: 'home'
},
{
text: 'Facilities',
icon: 'folder',
items: [
{
text: 'Profile',
icon : 'folder',
items :
[
{
text : 'test',
path: '/fire-permit-overview'
}
]
},
{
text: 'Fire Permits',
path: '/fire-permit-overview'
}
]
}
];
but I got the error : ERROR TypeError: Cannot read property 'getNodeByKey' of undefined
Is it possible?

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the navigation configuration shown in the issue and reproduce the getNodeByKey error using the nested items structure. Trace the menu handling around that error to determine whether nested submenus are supported. Done means the nested entries render without the error and the shown paths remain usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.