mdb-navbar set if of navbarCollapse


Topic: mdb-navbar set if of navbarCollapse

bitjuice pro asked 4 years ago

Hi,

I'm using 2 mdb-navbar in the same page. Each navbar generate this element:

<div class="navbar-collapse collapse" id="navbarCollapse" style="height: 0px;">...</div>

So I have 2 div element in this page with the same id.

It's possible to set custom id for this element?

thanks

Marco

Thanks Marco


Grzegorz Bujański staff answered 4 years ago

Hi. You can change the id using the collapseId attribute:

<mdb-navbar collapseId = "yourId" SideClass = "navbar navbar-expand-lg navbar-dark indigo">
...
</mdb-navbar>

bitjuice pro commented 4 years ago

Thanks a lot 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

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 10.0.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags