diff options
| author | Chris Rebert <[email protected]> | 2015-09-28 12:30:03 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-09-28 12:30:03 -0700 |
| commit | 215d4c19f74b71c4e960d9797e902803ad0ffe09 (patch) | |
| tree | 3e3839772bfc3dc85d87ffdd36caf249a6bec1d3 /docs/components/modal.md | |
| parent | fabba295c32fc9aef11964ffe81fd920d4d5ee9c (diff) | |
| parent | a9f24fc59f09cf77125833be10769e7c04f813a2 (diff) | |
| download | bootstrap-215d4c19f74b71c4e960d9797e902803ad0ffe09.tar.xz bootstrap-215d4c19f74b71c4e960d9797e902803ad0ffe09.zip | |
Merge pull request #17725 from twbs/curly-quotes
Use backticks/<code> for JS snippets in docs headings
Diffstat (limited to 'docs/components/modal.md')
| -rw-r--r-- | docs/components/modal.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/components/modal.md b/docs/components/modal.md index 6bda50798..8bf782674 100644 --- a/docs/components/modal.md +++ b/docs/components/modal.md @@ -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). |
