]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Doc: add `dispose()` to Offcanvas methods (#39340)
authorJulien Déramond <juderamond@gmail.com>
Mon, 30 Oct 2023 07:23:11 +0000 (08:23 +0100)
committerGitHub <noreply@github.com>
Mon, 30 Oct 2023 07:23:11 +0000 (08:23 +0100)
site/content/docs/5.3/components/offcanvas.md

index 6a16b3e612731e0f0fcc456bfd7a248b7b2d917e..ac257df242266ad8112dd7547a19173bff5cdd12 100644 (file)
@@ -328,6 +328,7 @@ const bsOffcanvas = new bootstrap.Offcanvas('#myOffcanvas')
 {{< bs-table "table" >}}
 | Method | Description |
 | --- | --- |
+| `dispose` | Destroys an element's offcanvas. |
 | `getInstance` | *Static* method which allows you to get the offcanvas instance associated with a DOM element. |
 | `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. |
 | `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). |