## Component jQuery API Bootstrap drawer comes with `drawer.js` to be added to the `bootstrap.js` component suite. If you're including separate components, `drawer.js` depends on `transition.js` plugin. `drawer.js` is built similarly to `collapse.js`. ---------- ### Example
Name | selector | default | description |
---|---|---|---|
parent | selector | false | If a selector is provided, then all collapsible elements under the specified parent will be closed when this drawer is open. |
toggle | boolean | true | Toggle the drawer element on invocation. |
Event Type | Description |
---|---|
show.bs.drawer | This event fires immediately when the `show` instance method is called. |
shown.bs.drawer | This event is fired when a collapse element has been made visible to the user (will wait for CSS transitions to complete). |
hide.bs.drawer | This event is fired immediately when the `hide` method has been called. |
hidden.bs.drawer | This event is fired when a collapse element has been hidden from the user (will wait for CSS transitions to complete). |