Topic: SideNav with a submenu already opened

cdenby pro asked 4 years ago


Is it possible to load a sidenav (in a doublenav in my case) with a submenu already expanded? I can't seem to find documentation on that.


Grzegorz Bujański staff answered 4 years ago


Hi. You can only expand one subment at a time. Add the active class to the element you want to expand:

<li>
    <a class="collapsible-header waves-effect arrow-r active">
        <i class="fas fa-chevron-right"></i> 
            Submit blog
        <i class="fas fa-angle-down rotate-icon"></i>
    </a>
    <div class="collapsible-body">
        <ul class="list-unstyled">
            <li>
                <a href="#" class="waves-effect">Submit listing</a>
            </li>
            <li>
                <a href="#" class="waves-effect">Registration form</a>
            </li>
        </ul>
    </div>
</li>

Best, Grzegorz


cdenby pro answered 4 years ago


Excellent - thank you.


Grzegorz Bujański staff commented 4 years ago

I'm glad I could help.

Best, Grzegorz



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.12.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No