1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Update JS-powered buttons docs to include single button example

Closes #25067
This commit is contained in:
Mark Otto 2017-12-24 14:25:18 -08:00 committed by Mark Otto
parent d5cbe696da
commit 1171e175c0

View file

@ -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>`. Note that pre-checked buttons require you to manually add the `.active` class to the input's `<label>`.
{% example html %} {% 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"> <label class="btn btn-secondary active">
<input type="checkbox" checked autocomplete="off"> Active <input type="checkbox" checked autocomplete="off"> Checked
</label>
<label class="btn btn-secondary">
<input type="checkbox" autocomplete="off"> Check
</label>
<label class="btn btn-secondary">
<input type="checkbox" autocomplete="off"> Check
</label> </label>
</div> </div>
{% endexample %} {% endexample %}