Skip to main content
1.0.0Next5.1.05.0.35.0.25.0.15.0.04.0.94.0.84.0.73.2.03.1.03.0.13.0.02.1.12.0.101.0.0
Version: 1.0.0

Form

HTML


<ul class="kx-select-group">

<li class="kx-select-item">
<label class="kx-ui kx-selector kx-selector__checkbox">
<input type="checkbox" name="checkbox" />
<div class="kx-selector__indicator"></div>
<span class="label-text">Default checkbox</span>
</label>
</li>

<li class="kx-select-item">
<label class="kx-ui kx-selector kx-selector__checkbox">
<input type="checkbox" name="checkbox" />
<div class="kx-selector__indicator"></div>
<span class="label-text">Default checkbox</span>
</label>
</li>

<li class="kx-select-item">
<label class="kx-ui kx-selector kx-selector__checkbox">
<input type="checkbox" name="checkbox" />
<div class="kx-selector__indicator"></div>
<span class="label-text">Default checkbox</span>
</label>
</li>

<li class="kx-select-item">
<label class="kx-ui kx-selector kx-selector__checkbox">
<input type="checkbox" name="checkbox" />
<div class="kx-selector__indicator"></div>
<span class="label-text">Default checkbox</span>
</label>
</li>

<li class="kx-select-item">
<label class="kx-ui kx-selector kx-selector__checkbox">
<input type="checkbox" name="checkbox" />
<div class="kx-selector__indicator"></div>
<span class="label-text">Default checkbox</span>
</label>
</li>

</ul>

View


{% if not rows %}
<label class="kx-ui kx-selector kx-selector__checkbox">
<input type="checkbox"{% if name %} name="{{name}}"{% endif %}{% if checked %} checked="checked"{% endif %}{% if disabled %} disabled="disabled"{% endif %} />
<div class="kx-selector__indicator"></div>
{% if label -%}<span class="label-text">{{ label }}</span>{% endif %}
</label>
{% else%}
<ul class="kx-select-group">
{% for row in rows %}
<li class="kx-select-item">
<label class="kx-ui kx-selector kx-selector__checkbox">
<input type="checkbox"{% if name %} name="{{name}}"{% endif %}{% if checked %} checked="checked"{% endif %}{% if disabled %} disabled="disabled"{% endif %} />
<div class="kx-selector__indicator"></div>
{% if label -%}<span class="label-text">{{ label }}</span>{% endif %}
</label>
</li>
{% endfor %}
</ul>
{% endif %}