Sidebar.destroy

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')
check close