Add sidebar toggle functionality to any DOM element. Useful when creating sidebar toggle buttons dynamically via JavaScript. The element requires the data-target="#sidebar-id" attribute.
{% markdown %}
```js
BootstrapLayout.sidebarToggle.init(element)
```
{% endmarkdown %}
| Argument | Type | Required | Default value |
|---|---|---|---|
| element |
String|jQueryThe argument can be a String representing a DOM selector, for example #special-toggle-button or a jQuery element i.e. $('#special-toggle-button')
|