Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
1f35b6ec
Commit
1f35b6ec
authored
Dec 08, 2013
by
Chris Rebert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix <button>s with .btn but missing accompanying .btn-*
parent
bab736c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
javascript.html
javascript.html
+3
-3
No files found.
javascript.html
View file @
1f35b6ec
...
...
@@ -1433,14 +1433,14 @@ $('.btn').button()
<p>
You can enable auto toggling of a button by using the
<code>
data-toggle
</code>
attribute.
</p>
</div>
{% highlight html %}
<button
type=
"button"
class=
"btn"
data-toggle=
"button"
>
...
</button>
<button
type=
"button"
class=
"btn
btn-primary
"
data-toggle=
"button"
>
...
</button>
{% endhighlight %}
<h4>
$().button('loading')
</h4>
<p>
Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute
<code>
data-loading-text
</code>
.
</p>
{% highlight html %}
<button
type=
"button"
class=
"btn"
data-loading-text=
"loading stuff..."
>
...
</button>
<button
type=
"button"
class=
"btn
btn-primary
"
data-loading-text=
"loading stuff..."
>
...
</button>
{% endhighlight %}
<div
class=
"bs-callout bs-callout-danger"
>
...
...
@@ -1454,7 +1454,7 @@ $('.btn').button()
<h4>
$().button(string)
</h4>
<p>
Resets button state - swaps text to any data defined text state.
</p>
{% highlight html %}
<button
type=
"button"
class=
"btn"
data-complete-text=
"finished!"
>
...
</button>
<button
type=
"button"
class=
"btn
btn-primary
"
data-complete-text=
"finished!"
>
...
</button>
<script>
$
(
'
.btn
'
).
button
(
'
complete
'
)
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment