laravel-menu icon indicating copy to clipboard operation
laravel-menu copied to clipboard

Custom div menu layout

Open mgip opened this issue 2 years ago • 0 comments

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

mgip avatar Jun 28 '22 10:06 mgip