ui-navbar icon indicating copy to clipboard operation
ui-navbar copied to clipboard

Menu items without dropdown between other items

Open MarinAngelo opened this issue 9 years ago • 1 comments

Hi there Thanks for providing this super peace of UI! I would like to have a menu item between the others which has no dropdown. How could I do that? I dried the following but it doesn't work:

{
                  // item with dropdown
                    name: 'AKTUELL',
                        tree: [{
                        name: "News",
                        link: "news"
                    }]
                }, {
             // item without dropdown
                    name: 'TOY DIRECTORY',
                    link: 'toydirectory'
                 }, {
             // item again with dropdown
                    name: 'PRODUKTE INFOS',
                    // name: 'Produkte Infos',
                    tree: [{
                        name: 'Neuheiten',
                        link: 'neuheiten'
                    }, {
                        name: 'Toy Directory',
                        link: 'toydirectory'
                    }]
                },

MarinAngelo avatar Nov 14 '16 09:11 MarinAngelo

@MarinAngelo one solution would be to use the single approach to create the navbar component and not the trees, here the plunkr

<ul class="nav navbar-nav">
    <li>
         <a href="#" ui-sref="metal-gear">
             Metal Gear
          </a>
    </li>
    <li uib-dropdown="">
         <a href="#" uib-dropdown-toggle="">
              Just a clone
              <span class="caret"></span>
         </a>
         <tree tree="konami"></tree>
     </li>
</ul>

P.S.: thanks a lot for the appreciation :wink:

blackat avatar Nov 18 '16 15:11 blackat