Adminlte: Dropdown on nav bar is not showing

Created on 16 Oct 2015  路  4Comments  路  Source: ColorlibHQ/AdminLTE

Hi Almasaeed

I am having trouble in implementing dropdown-menu function as shown in index.html

Here is a very basic code I have written:

                  <li class="dropdown notification-menu"> 
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="fa fa-bell-o"></i>
                     <span class="label label-warning">10</span>
                  </a>
                 <ul class="dropdown-menu">
               <li>Here is the menu</li>
         </ul>
      </li>

But when I compile it , the dropdown-menu did not appear although aria-expended="true".

Thank you so much for your reply.

question

All 4 comments

Hello,

aria-expanded="true" does not control the open/close events of the dropdown. To implement any dropdown menus, refer to Bootstrap's dropdown documentation which explains how to handle the event. Thanks!

Thank you so much for your reply.

I just found out the root of my problem is because I have included two different version of JQuery file in my script.

It may due to duplicate include of following files:

public $js = [        
        // '.../dist/jquery.min.js',
        // '.../dist/js/bootstrap.min.js',
];

That's True ErSKS. I've been wondering whats wrong with my code since...i took out bootstrap.min and it works fine. i'M SO GRATEFUL

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GuxMartin picture GuxMartin  路  3Comments

REJack picture REJack  路  3Comments

kgoedert picture kgoedert  路  4Comments

jrlooney picture jrlooney  路  3Comments

fromberg100 picture fromberg100  路  4Comments