mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Doc: add dispose()
to Offcanvas methods (#39340)
This commit is contained in:
parent
f7426c08e7
commit
d769ae0e0f
@ -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). |
|
||||
|
Loading…
x
Reference in New Issue
Block a user