Clear custom event listeners and data associated with a sidebar. Useful before removing a sidebar from the DOM dynamically.{% markdown %} ```js BootstrapLayout.sidebar.destroy(sidebar) ``` {% endmarkdown %}
Argument | Type | Required | Default value |
---|---|---|---|
sidebar |
String|jQuery The argument can be a String representing the sidebar id attribute, for example #my-sidebar or a jQuery element i.e. $('#my-sidebar')
|