Skip to content

Removing the bar

removeBar()

Remove the bar instance by name. Note that the method will only tear down event listeners and remove the added class names. The dialog element will not be removed.

ArgumentTypeDefaultDescription
namestringBar name
javascript
bartender.removeBar('mobileNav')

Released under the MIT License.