bootstrap-layout
Version:
Bootstrap layout with sidebar navigation, sidebar skins, sidebar transition, custom scrollbars, sidebar menus and other advanced features and utilities
33 lines (32 loc) • 979 B
HTML
<h3>Sidebar.toggle</h3>
<blockquote>
Toggles the visibility of a sidebar.
</blockquote>
{% markdown %}
```js
BootstrapLayout.sidebar.toggle(sidebar)
```
{% endmarkdown %}
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th width="160">Argument</th>
<th>Type</th>
<th class="text-xs-center">Required</th>
<th class="text-xs-center" width="160">Default value</th>
</tr>
</thead>
<tbody>
<tr>
<td>sidebar</td>
<td>
<code>String|jQuery</code><br>
The argument can be a String representing the sidebar <code>id</code> attribute, for example <code>#my-sidebar</code> or a jQuery element i.e. <code>$('#my-sidebar')</code>
</td>
<td class="text-xs-center"><span class="material-icons text-success">check</span></td>
<td class="text-xs-center"><span class="material-icons">close</span></td>
</tr>
</tbody>
</table>
</div>