--- layout: default title: Bootstrap-checkbox ---

Installation

{% highlight html %} ... {% endhighlight %}

Enable Bootstrap-checkbox via JavaScript:

{% highlight js %} $(':checkbox').checkboxpicker(); {% endhighlight %}

Options

Property Type Default
style false | string false
defaultClass string 'btn-default'
disabledCursor false | string 'not-allowed'
offClass string 'btn-danger'
onClass string 'btn-success'
offLabel false | string 'No'
onLabel false | string 'Yes'
offIconClass false | string false
onIconClass false | string false
offTitle false | string false
onTitle false | string false
reverse boolean false
warningMessage string 'Please do not use bootstrap-checkbox element in label element.'

Examples

{% highlight html %} {% endhighlight %}
{% highlight html %} {% endhighlight %}
{% highlight html %} {% endhighlight %}
{% highlight html %} {% endhighlight %}
{% highlight html %} {% endhighlight %}
{% highlight html %}
{% endhighlight %}
{% highlight html %} {% endhighlight %}
{% highlight html %} {% endhighlight %}
{% highlight html %} {% endhighlight %}

{% highlight html %} {% endhighlight %}
{% highlight html %}
{% endhighlight %}