Mattia Larentis il y a 12 ans
Parent
commit
5c28e9d109
1 fichiers modifiés avec 21 ajouts et 3 suppressions
  1. 21 3
      README.md

+ 21 - 3
README.md

@@ -35,11 +35,29 @@ Large, small or mini
 </div>
 </div>
 ```
 ```
 
 
-Data attributes
----------------
+Colors
+------
 
 
 ``` html
 ``` html
-<div class="switch" data-on="danger" data-off="warning"  data-animated="false">  <!-- primary, info, success, warning and danger -->
+<div class="switch" data-on="danger" data-off="warning">  <!-- primary, info, success, warning and danger -->
+    <input type="checkbox">
+</div>
+```
+
+Animation
+---------
+
+``` html
+<div class="switch" data-animated="false">
+    <input type="checkbox">
+</div>
+```
+
+Label
+-----
+
+``` html
+<div class="switch" data-on-label="SI" data-off-label="NO">
     <input type="checkbox">
     <input type="checkbox">
 </div>
 </div>
 ```
 ```