We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is a bug I think, when I try to add divide() between sub items http://screencast.com/t/uKugE0SmG4O it appears not inside dropdown but at top level menu http://screencast.com/t/5b2LXRwLF05s
The text was updated successfully, but these errors were encountered:
Have you tried adding this in your menu items @foreach($item->children() as $child) loop, like this:
@foreach($item->children() as $child)
@foreach($items as $item) ... @if($item->hasChildren()) <ul class="dropdown-menu" role="menu"> @foreach($item->children() as $child) <li> <a href="{{ $child->url() }}{!! $child->attribute('query') !!}"> {{ $child->title }} </a> </li> @if ($child->divider) <li {{ \Html::attributes($child->divider) }}></li> @endif @endforeach </ul> @endif ... @endforeach
The code for when making the submenu:
$dropdown = $menu->add('Dropdown'); $dropdown->add('First Item', ['routes' => 'route.index']); $dropdown->add('Second Item', ['routes' => 'route.index'])->divide(); $dropdown->add('Action 1, ['routes' => 'route.index'])->divide();
Sorry, something went wrong.
No branches or pull requests
Here is a bug I think, when I try to add divide() between sub items http://screencast.com/t/uKugE0SmG4O it appears not inside dropdown but at top level menu http://screencast.com/t/5b2LXRwLF05s
The text was updated successfully, but these errors were encountered: