2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03:00

add indeterminate checkbox support

This commit is contained in:
Mark Otto
2015-01-01 12:01:55 -08:00
parent 82403407d8
commit 401ace65f4
3 changed files with 24 additions and 9 deletions
+16
View File
@@ -29,6 +29,22 @@ In the checked states, we use **base64 embedded SVG icons** from [Open Iconic](h
</label>
{% endexample %}
Custom checkboxes can also utilize the `:indeterminate` pseudo class.
<div class="bs-example bs-example-indeterminate">
<label class="c-input c-checkbox">
<input type="checkbox">
<span class="c-indicator"></span>
Check this custom checkbox
</label>
</div>
**Heads up!** You'll need to set this state manually via JavaScript as there is no available HTML attribute for specifying it. If you're using jQuery, something like this should suffice:
{% highlight js %}
$('.your-checkbox').prop('indeterminate', true)
{% endhighlight %}
### Radios
{% example html %}