lavary/laravel-menu

Custom div menu layout

Opened this issue · 0 comments

mgip commented

Hello

I have this HTML Menu Structure

<div class="nav-item has-sub open">

  <a href="#"><i class="ik ik-user"></i><span>Adminstrator</span></a>

  <div class="submenu-content" style="">
    <a href="/users" class="menu-item is-shown">Users</a>
  </div>

</div>

I try to figure out with

        $menu->add('<i class="ik ik-bar-chart-2"></i><span>' . __('Dashboard') . '</span></a>', ['class' => 'nav-item', 'route'  => 'dashboard']);
        $menu->add('<i class="ik ik-shield"></i><span>' . __('Usuarios y Roles') . '</span></a>', ['class' => 'nav-item'])->id('74398247329487');

But, I could not envolve with the a div tag (Children with submenu-content)

Someone could help to figure out

Thanks