Topic: How to add Container in Navbar ?
qyako
pro
asked 7 years ago
Im trying add <div class="container"></div> inside <navbar></navbar> but i got error message :
Error in mounted hook: "TypeError: Cannot read property 'classList' of undefined"
Bartłomiej Malanowski
staff
answered 7 years ago
This works for me:
<navbar position="top" dark color="primary" name="Your Logo" href="#" scrolling> <container> <navbar-collapse> <navbar-nav> <navbar-item href="#" waves-fixed>Home</navbar-item> <navbar-item href="#" waves-fixed>Features</navbar-item> <navbar-item href="#" waves-fixed>Pricing</navbar-item> <!-- Dropdown --> <dropdown tag="li" class="nav-item"> <dropdown-toggle @click.native="toggleDropdown(0)" tag="a" navLink color="primary" waves-fixed>Dropdown</dropdown-toggle> <dropdown-menu v-show="active[0]" > <dropdown-item>Action</dropdown-item> <dropdown-item>Another action</dropdown-item> <dropdown-item>Something else here</dropdown-item> </dropdown-menu> </dropdown> </navbar-nav> <!-- Search form --> <form class="form-inline"> <md-input type="text" placeholder="Search" aria-label="Search" label navInput waves waves-fixed/> </form> </navbar-collapse> </container> </navbar>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- ForumUser: Pro
- Premium support: No
- Technology: MDB Vue
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: No
Tags
Bartłomiej Malanowski staff commented 7 years ago
Could you please share your code with us?