2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

Add dispose methods in our documentation (#24396)

* Add dispose methods in our documentation

* Update buttons.md
This commit is contained in:
Johann-S
2017-10-16 16:51:42 +02:00
committed by GitHub
parent 658e81a084
commit 99eece1392
8 changed files with 23 additions and 1 deletions
+4
View File
@@ -575,6 +575,10 @@ Manually readjust the modal's position if the height of a modal changes while it
{% highlight js %}$('#myModal').modal('handleUpdate'){% endhighlight %}
### `.modal('dispose')`
Destroys an element's modal.
### Events
Bootstrap's modal class exposes a few events for hooking into modal functionality. All modal events are fired at the modal itself (i.e. at the `<div class="modal">`).