mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Update JS-powered buttons docs to include single button example
Closes #25067
This commit is contained in:
parent
d5cbe696da
commit
1171e175c0
@ -123,15 +123,9 @@ The checked state for these buttons is **only updated via `click` event** on the
|
||||
Note that pre-checked buttons require you to manually add the `.active` class to the input's `<label>`.
|
||||
|
||||
{% example html %}
|
||||
<div class="btn-group btn-group-toggle" data-toggle="buttons">
|
||||
<div class="btn-group-toggle" data-toggle="buttons">
|
||||
<label class="btn btn-secondary active">
|
||||
<input type="checkbox" checked autocomplete="off"> Active
|
||||
</label>
|
||||
<label class="btn btn-secondary">
|
||||
<input type="checkbox" autocomplete="off"> Check
|
||||
</label>
|
||||
<label class="btn btn-secondary">
|
||||
<input type="checkbox" autocomplete="off"> Check
|
||||
<input type="checkbox" checked autocomplete="off"> Checked
|
||||
</label>
|
||||
</div>
|
||||
{% endexample %}
|
||||
|
Loading…
Reference in New Issue
Block a user