bestmomo / laravel5-example

Simple laravel5 example for tutorial
MIT License
1.2k stars 568 forks source link

Dropdown Navigation #27

Closed ghost closed 9 years ago

ghost commented 9 years ago

I want to create a navigation with dropdown in you template.blade.php. I used class="dropdown" in bootstrap and add CDN bootstrap but it not working. Can you help me? PS: sorry about my bad english grammar.

bestmomo commented 9 years ago

Bootstrap (V3.2) is already loaded with the template. To add a dropdown in navbar use standard bootstrap code :

<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
  <ul class="dropdown-menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">Separated link</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">One more separated link</a></li>
  </ul>
</li>
ghost commented 9 years ago

Yes, i copied pasted into template.blade.php but Google Chrome only show Dropdown and caret sign. Items 'Action', 'Another action', .. not visible.

bestmomo commented 9 years ago

In front template ? Where do you put this code ?

ghost commented 9 years ago

Sorry, it worked. I don't know WHY?

bestmomo commented 9 years ago

perfect if it works ;)