浏览代码

update doc

Mattia Larentis 12 年之前
父节点
当前提交
5c28e9d109
共有 1 个文件被更改,包括 21 次插入3 次删除
  1. 21 3
      README.md

+ 21 - 3
README.md

@@ -35,11 +35,29 @@ Large, small or mini
 </div>
 ```
 
-Data attributes
----------------
+Colors
+------
 
 ``` 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">
 </div>
 ```