aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Déramond <[email protected]>2023-10-30 08:23:11 +0100
committerGitHub <[email protected]>2023-10-30 08:23:11 +0100
commitd769ae0e0f001f3cecea76d56dacc28ae843e417 (patch)
tree2f0d2f2851023f5b936f191195d1fdb1635b5ffa
parentf7426c08e7818ff3eb77f7c7cde54ca6d28009b2 (diff)
downloadbootstrap-d769ae0e0f001f3cecea76d56dacc28ae843e417.tar.xz
bootstrap-d769ae0e0f001f3cecea76d56dacc28ae843e417.zip
Doc: add `dispose()` to Offcanvas methods (#39340)
-rw-r--r--site/content/docs/5.3/components/offcanvas.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/site/content/docs/5.3/components/offcanvas.md b/site/content/docs/5.3/components/offcanvas.md
index 6a16b3e61..ac257df24 100644
--- a/site/content/docs/5.3/components/offcanvas.md
+++ b/site/content/docs/5.3/components/offcanvas.md
@@ -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). |