First level MenuItems

UI Components for Angular
Post Reply
davidgfolch
Posts: 4
Joined: 26 Jul 2016, 07:59

26 Jul 2016, 08:51

Hi all,

First level panel-menu items don't work as expected. "Home" and "Contracts" are showing submenu deployment caret and routerlink is not working

Code: Select all

    <p-panelMenu [model]="items" [style]="{'width':'300px'}"></p-panelMenu>


    this.items = [
      {
        label: 'File',
        icon: 'fa-file-o',
        items: [{
          label: 'New',
          icon: 'fa-plus',
          items: [
            { label: 'Project' },
            { label: 'Other' },
          ]
        }
        ]
      },
      { label: 'Home', routerLink: ['/'] },
      { label: 'Contracts', routerLink: ['/contracts'] }
    ];

nraphael
Posts: 10
Joined: 15 Apr 2016, 07:49

06 Aug 2016, 12:39

I'm also having this issue. I want a simple list of links - not sub lists.

mustafasadikot
Posts: 1
Joined: 08 Aug 2016, 07:50

08 Aug 2016, 07:55

I am also facing the same issue.

Expected behavior :
1. Should not open to blank child item.
2. Should be able to use the Router link assigned to the item.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests