You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/docs/4.2/components/alerts.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Note that closing an alert will remove it from the DOM.
100
100
|`$().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. |
101
101
|`$().alert('dispose')`| Destroys an element's alert. |
Copy file name to clipboardExpand all lines: site/docs/4.2/components/forms.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ Set heights using classes like `.form-control-lg` and `.form-control-sm`.
115
115
Add the `readonly` boolean attribute on an input to prevent modification of the input's value. Read-only inputs appear lighter (just like disabled inputs), but retain the standard cursor.
All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):
66
66
67
67
{% highlight js %}
68
-
$('#myModal').modal() // initialized with defaults
69
-
$('#myModal').modal({ keyboard: false }) // initialized with no keyboard
70
-
$('#myModal').modal('show') // initializes and invokes show immediately
68
+
$('#myModal').modal() // initialized with defaults
69
+
$('#myModal').modal({ keyboard: false }) // initialized with no keyboard
70
+
$('#myModal').modal('show') // initializes and invokes show immediately
71
71
{% endhighlight %}
72
72
73
73
Each plugin also exposes its raw constructor on a `Constructor` property: `$.fn.popover.Constructor`. If you'd like to get a particular plugin instance, retrieve it directly from an element: `$('[rel="popover"]').data('popover')`.
@@ -100,7 +100,8 @@ $('#myCarousel').carousel('2') // !! Will be ignored, as the transition to the s
100
100
You can change the default settings for a plugin by modifying the plugin's `Constructor.Default` object:
101
101
102
102
{% highlight js %}
103
-
$.fn.modal.Constructor.Default.keyboard = false // changes default for the modal plugin's `keyboard` option to false
103
+
// changes default for the modal plugin's `keyboard` option to false
104
+
$.fn.modal.Constructor.Default.keyboard = false
104
105
{% endhighlight %}
105
106
106
107
## No conflict
@@ -109,7 +110,7 @@ Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In
109
110
110
111
{% highlight js %}
111
112
var bootstrapButton = $.fn.button.noConflict() // return $.fn.button to previously assigned value
112
-
$.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Bootstrap functionality
113
+
$.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Bootstrap functionality
0 commit comments