Is it possible to use Bootstrap 4 to collapse a div with a sidebar menu to the left without extensive changes? I'm hoping to achieve this without having to write my own JS or rely on external scripts.
So far, I've been exploring the bootstrap collapse feature available at https://getbootstrap.com/docs/4.1/components/collapse/
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<body class="no-gutters">
<div id="wrapper" class="container-fluid ">
<div class="spacer d-flex justify-content-center align-items-center">
</div>
<a class="btn btn-primary" data-toggle="collapse" href="#admin-sidebar" role="button" aria-expanded="true"
aria-controls="admin-sidebar">
Collapse Button (temp)
</a>
<div class="row ">
<div id="admin-sidebar" class="col-2 p-0 collapse show" style="">
<!-- sidenav -->
<nav id="admin-nav" class="navbar navbar-expand-md bg-dark breadcrumb align-content-start">
<ul class="navbar-nav flex-column ">
<li class="nav-item">
<a href="admin.php" class="nav nav-link text-uppercase text-light">Admin Menu</a>
</li>
<li class="nav-item">
<a href="admin.php?table=sources" class="nav-link"> <i class="fas fa-table"
aria-hidden="true"></i>
<span class="text-light">
Sources
</span>
</a>
</li>
<li class="nav-item">
<a href="?table=topics" class="nav-link">
<i class="fas fa-table" aria-hidden="true"></i>
<span class="text-light">
Topics
</span>
</a>
</li>
<li class="nav-item">
<a href="?table=articles" class="nav-link">
<i class="fas fa-table" aria-hidden="true"></i>
<span class="text-light">
Articles
</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</body>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
My Bootstrap 4 setup is running smoothly, but I need assistance in changing the collapse direction from bottom to top to right to left.
I would greatly appreciate any guidance or help provided.