1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-24 02:38:15 +04:00

Card with switch

This commit is contained in:
chomik
2018-02-21 16:57:25 +01:00
parent 54efaaaf81
commit e488b8d047
3 changed files with 14 additions and 0 deletions

View File

@@ -71,3 +71,9 @@ You can also add the image on the left side of the card. All you need do to is:
</div>
{% endexample %}
### Card with switch
{% example html columns=1 %}
{% include cards/card.html title="Card with switch" show-switch=true %}
{% endexample %}

View File

@@ -22,6 +22,11 @@
{% elsif include.show-buttons %}
<a class="btn btn-secondary btn-sm">Action 1</a>
<a class="btn btn-secondary btn-sm ml-2">Action 2</a>
{% elsif include.show-switch %}
<label class="custom-switch m-0">
<input type="checkbox" value="1" class="custom-switch-input" checked>
<span class="custom-switch-indicator"></span>
</label>
{% elsif include.options %}
{{ include.options }}
{% else %}

View File

@@ -59,5 +59,8 @@ menu: interface.cards
<div class="col-lg-6">
{% include cards/card.html title="Card with alert" alert="Adding action was failed" alert-type="danger" %}
</div>
<div class="col-lg-6">
{% include cards/card.html title="Card with switch" show-switch=true %}
</div>
</div>
</div>