Skip to content

Commit d769ae0

Browse files
Doc: add dispose() to Offcanvas methods (#39340)
1 parent f7426c0 commit d769ae0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

site/content/docs/5.3/components/offcanvas.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ const bsOffcanvas = new bootstrap.Offcanvas('#myOffcanvas')
328328
{{< bs-table "table" >}}
329329
| Method | Description |
330330
| --- | --- |
331+
| `dispose` | Destroys an element's offcanvas. |
331332
| `getInstance` | *Static* method which allows you to get the offcanvas instance associated with a DOM element. |
332333
| `getOrCreateInstance` | *Static* method which allows you to get the offcanvas instance associated with a DOM element, or create a new one in case it wasn't initialized. |
333334
| `hide` | Hides an offcanvas element. **Returns to the caller before the offcanvas element has actually been hidden** (i.e. before the `hidden.bs.offcanvas` event occurs). |

0 commit comments

Comments
 (0)