Bootstrap-Notification does not open when clicking the bell

0

I use " Bootstrap Notification " here .

I just want to show a dropdown type when I click on the notification. An example below:

Butthefollowingcodehappensnothing.Justshowme.

<divclass="row nav1">
  <nav class="navbar navbar-inverse" id="top-menu" role="navigation">
    <div class="container-fluid">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-target="#navbarCollapse" data-toggle="collapse"> <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>

        </button>
      </div>
      <!-- Collapse navigation -->
      <div class="collapse navbar-collapse" id="navbarCollapse">
        <ul class="nav navbar-nav">
          <li class="active"> <a href="#">HOME</a>

          </li>
          <li> <a href="#">YOUR ACCOUNT</a>

          </li>
          <li class="dropdown dropdown-notifications">
        <a href="#notifications-panel" class="dropdown-toggle">
            <i data-count="2" class="glyphicon glyphicon-bell notification-icon"></i>
        </a>

        <div class="dropdown-container">

            <div class="dropdown-toolbar">
                <div class="dropdown-toolbar-actions">
                    <a href="#">Mark all as read</a>
                </div>
                <h3 class="dropdown-toolbar-title">Notifications (2)</h3>
            </div><!-- /dropdown-toolbar -->

            <ul class="dropdown-menu">
                <li><a href="#">Dashboard</a></li>
                <li><a href="#">Projects</a></li>
                <li><a href="#">People</a></li>
            </ul>

            <div class="dropdown-footer text-center">
                <a href="#">View All</a>
            </div><!-- /dropdown-footer -->

        </div><!-- /dropdown-container -->
    </li><!-- /dropdown -->
        </ul>
      </div>
    </div>
    <!-- End container-fluid -->
  </nav>
  <!-- End navbar-inverse -->
</div>

Or if you prefer jsfiddle here .

    
asked by anonymous 28.05.2017 / 21:13

1 answer

2

Add class open to the bell tag.

<li class="dropdown dropdown-notifications open">

In sequence, it would be interesting to use JavaScript to add and remove this class in the click event.

    
28.05.2017 / 21:58