mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Merge pull request #15470 from twbs/document-version
Document the VERSION property of the jQuery plugins;
This commit is contained in:
commit
714cd6b608
2 changed files with 7 additions and 0 deletions
|
@ -68,6 +68,12 @@ $.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Boot
|
|||
$('#myModal').on('show.bs.modal', function (e) {
|
||||
if (!data) return e.preventDefault() // stops modal from being shown
|
||||
})
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="js-version-nums">Version numbers</h3>
|
||||
The version of each of Bootstrap's jQuery plugins can be accessed via the <code>VERSION</code> property of the plugin's constructor. For example, for the tooltip plugin:
|
||||
{% highlight js %}
|
||||
$.fn.tooltip.Constructor.VERSION // => "{{ site.current_version }}"
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="js-disabled">No special fallbacks when JavaScript is disabled</h3>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<li><a href="#js-programmatic-api">Programmatic API</a></li>
|
||||
<li><a href="#js-noconflict">No conflict</a></li>
|
||||
<li><a href="#js-events">Events</a></li>
|
||||
<li><a href="#js-version-nums">Version numbers</a></li>
|
||||
<li><a href="#js-disabled">When JavaScript is disabled</a></li>
|
||||
<li><a href="#callout-third-party-libs">Third-party libraries</a></li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue