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

Menu attributes #51

Open
Arkitecht opened this issue Jul 12, 2015 · 1 comment
Open

Menu attributes #51

Arkitecht opened this issue Jul 12, 2015 · 1 comment

Comments

@Arkitecht
Copy link

There is documentation for adding attributes to menu items, but how about the menu parent element?
I tried doing a $menu->attribute, but that did not work.

I would like to add class names to the

    , I propose adding the same capabilities to menu as there are for item. IE:
    $menu = Menu::make(...)->attribute(['class'=>'navbar-nav','id'=>'main-nav'])
    would yield

      ...
@Arkitecht
Copy link
Author

Nevermind, I see now in the code that $menu->asUl takes an attributes parameter. Perhaps this should be included in the docs somewhere.

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

No branches or pull requests

2 participants