Skip to content
New issue

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

Children attributes #90

Open
wagnerdracha opened this issue Jun 21, 2016 · 1 comment
Open

Children attributes #90

wagnerdracha opened this issue Jun 21, 2016 · 1 comment

Comments

@wagnerdracha
Copy link

Hi

how to insert a attributes in children menu:
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Cadastros <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#" data-jsPanel-width="600" data-jsPanel-height="500" data-url="home/elevatoria">Teste</a></li> </ul> </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:

<li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> Cadastros <b class="caret"></b> </a> <ul class="dropdown-menu"> <li><a href="#">Teste</a></li> </ul> </li>

Why?

@wagnerdracha
Copy link
Author

Hello?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant