2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Use backticks/<code> for JS snippets in docs headings; closes #17192

[skip sauce]
This commit is contained in:
Chris Rebert
2015-09-28 12:24:37 -07:00
parent fabba295c3
commit a9f24fc59f
6 changed files with 25 additions and 25 deletions
+4 -4
View File
@@ -428,7 +428,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
### Methods
#### .modal(options)
#### `.modal(options)`
Activates your content as a modal. Accepts an optional options `object`.
@@ -438,19 +438,19 @@ $('#myModal').modal({
})
{% endhighlight %}
#### .modal('toggle')
#### `.modal('toggle')`
Manually toggles a modal. **Returns to the caller before the modal has actually been shown or hidden** (i.e. before the `shown.bs.modal` or `hidden.bs.modal` event occurs).
{% highlight js %}$('#myModal').modal('toggle'){% endhighlight %}
#### .modal('show')
#### `.modal('show')`
Manually opens a modal. **Returns to the caller before the modal has actually been shown** (i.e. before the `shown.bs.modal` event occurs).
{% highlight js %}$('#myModal').modal('show'){% endhighlight %}
#### .modal('hide')
#### `.modal('hide')`
Manually hides a modal. **Returns to the caller before the modal has actually been hidden** (i.e. before the `hidden.bs.modal` event occurs).