In my HTML page, there is a side menu bar displaying a list of dashboards using Django. I want this left-side menu to show only partially when logged in and fully expand after clicking on it.
The HTML code snippet for the sidebar looks like:
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li><span style="color:blue; font-weight:bold;">Dashboards</span></li>
{% for Dashboard in dashboards %}
<li><a href="{{ Dashboard.d_url }}" target="iframe_a">{{ Dashboard.d_name }}</a></li>
{% endfor %}
</ul>
</div>
As I am not well-versed in jQuery, I am wondering if there are ways to achieve this using just CSS and JavaScript. When I open the HTML file, it appears as shown, but I would like it to expand fully upon clicking on an icon.