<commit_before>---
layout: default
title: Bootstrap-checkbox
---

<h3>Installation</h3>

{% highlight html %}
<!DOCTYPE html>
<html>
<head>
	<!-- Latest compiled and minified Bootstrap CSS -->
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">

	<!-- Optional Bootstrap theme -->
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">

	<script src="https://code.jquery.com/jquery.min.js" defer></script>
	<script src="dist/bootstrap-checkbox.min.js" defer></script>
</head>
<body>
  ...
</body>
</html>
{% endhighlight %}

<p>Enable Bootstrap-checkbox via JavaScript:</p>
{% highlight js %}
$(':checkbox').checkboxpicker();
{% endhighlight %}
<p>Or just</p>
{% highlight js %}
$('input[type="checkbox"]').checkboxpicker();
{% endhighlight %}

<hr>
<h3>Options</h3>
<div class="table-responsive">
	<table class="table table-striped table-bordered table-hover">
		<thead>
			<tr>
				<th>Property</th>
				<th>Type</th>
				<th>Default</th>
			</tr>
		</thead>

		<tbody>
			<tr>
				<td>style</td>
				<td>false | string</td>
				<td>false</td>
			</tr>
			<tr>
				<td>defaultClass</td>
				<td>string</td>
				<td>btn-default</td>
			</tr>
			<tr>
				<td>offClass</td>
				<td>string</td>
				<td>btn-danger</td>
			</tr>
			<tr>
				<td>onClass</td>
				<td>string</td>
				<td>btn-success</td>
			</tr>
			<tr>
				<td>offLabel</td>
				<td>string</td>
				<td>No</td>
			</tr>
			<tr>
				<td>onLabel</td>
				<td>string</td>
				<td>Yes</td>
			</tr>
			<tr>
				<td>offTitle</td>
				<td>false | string</td>
				<td>false</td>
			</tr>
			<tr>
				<td>onTitle</td>
				<td>false | string</td>
				<td>false</td>
			</tr>
			<tr>
				<td>reverse</td>
				<td>boolean</td>
				<td>false</td>
			</tr>
		</tbody>
	</table>
</div>

<hr>
<h3 id="examples">Examples</h3>

<div class="form-horizontal">
	<div class="form-group">
		<div class="col-sm-3">
			<input type="checkbox">
		</div>
<commit_msg>Not comment.<commit_after>---
layout: default
title: Bootstrap-checkbox
---

<h2>Installation</h2>

{% highlight html %}
<!DOCTYPE html>
<html>
<head>
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">

	<script src="https://code.jquery.com/jquery.min.js" defer></script>
	<script src="dist/bootstrap-checkbox.min.js" defer></script>
</head>
<body>
  ...
</body>
</html>
{% endhighlight %}

<p>Enable Bootstrap-checkbox via JavaScript:</p>
{% highlight js %}
$(':checkbox').checkboxpicker();
{% endhighlight %}
<p>Or just</p>
{% highlight js %}
$('input[type="checkbox"]').checkboxpicker();
{% endhighlight %}

<hr>
<h2>Options</h2>
<div class="table-responsive">
	<table class="table table-striped table-bordered table-hover">
		<thead>
			<tr>
				<th>Property</th>
				<th>Type</th>
				<th>Default</th>
			</tr>
		</thead>

		<tbody>
			<tr>
				<td>style</td>
				<td>false | string</td>
				<td>false</td>
			</tr>
			<tr>
				<td>defaultClass</td>
				<td>string</td>
				<td>btn-default</td>
			</tr>
			<tr>
				<td>offClass</td>
				<td>string</td>
				<td>btn-danger</td>
			</tr>
			<tr>
				<td>onClass</td>
				<td>string</td>
				<td>btn-success</td>
			</tr>
			<tr>
				<td>offLabel</td>
				<td>string</td>
				<td>No</td>
			</tr>
			<tr>
				<td>onLabel</td>
				<td>string</td>
				<td>Yes</td>
			</tr>
			<tr>
				<td>offTitle</td>
				<td>false | string</td>
				<td>false</td>
			</tr>
			<tr>
				<td>onTitle</td>
				<td>false | string</td>
				<td>false</td>
			</tr>
			<tr>
				<td>reverse</td>
				<td>boolean</td>
				<td>false</td>
			</tr>
		</tbody>
	</table>
</div>

<hr>
<h2 id="examples">Examples</h2>

<div class="form-horizontal">
	<div class="form-group">
		<div class="col-sm-3">
			<input type="checkbox">
		</div>

{'fraction_non_alphanumeric': 0.23307692307692307, 'fraction_numerical': 0.006666666666666667, 'mean_word_length': 3.0593132154006244, 'pattern_counts': {'":': 0, '<': 241, '<?xml version=': 0, '>': 241, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6668970', 'n_tokens_mistral': 1932, 'n_tokens_neox': 1588, 'n_words': 256}