ui-navbar
ui-navbar copied to clipboard
Menu items without dropdown between other items
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 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: