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
+1
View File
@@ -92,6 +92,7 @@ Note that closing an alert will remove it from the DOM.
| --- | --- |
| `$().alert()` | Makes an alert listen for click events on descendant elements which have the `data-dismiss="alert"` attribute. (Not necessary when using the data-api's auto-initialization.) |
| `$().alert('close')` | Closes an alert by removing it from the DOM. If the `.fade` and `.show` classes are present on the element, the alert will fade out before it is removed. |
| `$().alert('dispose')` | Destroys an element's alert. |
{% highlight js %}$(".alert").alert('close'){% endhighlight %}