Open wagnerdracha opened 8 years ago
Hi
how to insert a attributes in children menu: `
</li>`
I do this:
Menu::make('example', function(Builder $menu) { $menu->add('Cadastros', '#')->attribute(['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'role' => 'button', 'aria-haspopup' => 'true', 'aria-expanded' => 'false']); $menu->cadastros->add('Teste', '#')->attribute(['data-jsPanel-width' => '600', 'data-jsPanel-height' => '500', 'data-url' => 'home/elevatoria']); });
But don't work. Return this:
`
Why?
Hello?
Hi
how to insert a attributes in children menu: `
I do this:
Menu::make('example', function(Builder $menu) { $menu->add('Cadastros', '#')->attribute(['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'role' => 'button', 'aria-haspopup' => 'true', 'aria-expanded' => 'false']); $menu->cadastros->add('Teste', '#')->attribute(['data-jsPanel-width' => '600', 'data-jsPanel-height' => '500', 'data-url' => 'home/elevatoria']); });
But don't work. Return this:
`
Why?