C
C#2mo ago
Itskillerluc

navbar

i want to create a navbar with an expandable thingy kind of like a treeview i have this html
<div class="nav-scrollable" onclick="document.querySelector('.navbar-toggler').click()">
<nav class="flex-column">
<div class="nav-item px-3">
<div class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Page 1<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Test</a></li>
</ul>
</div>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<span class="bi bi-house-door-fill-nav-menu" aria-hidden="true"></span> Home
</NavLink>
</div>

</nav>
</div>
<div class="nav-scrollable" onclick="document.querySelector('.navbar-toggler').click()">
<nav class="flex-column">
<div class="nav-item px-3">
<div class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> Page 1<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Test</a></li>
</ul>
</div>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<span class="bi bi-house-door-fill-nav-menu" aria-hidden="true"></span> Home
</NavLink>
</div>

</nav>
</div>
it doesnt work at all tho
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server