ソースを参照

Add more examples.

zhixin 11 年 前
コミット
0fb5c269e2

+ 5 - 0
docs/_includes/examples/format.md

@@ -0,0 +1,5 @@
+# Format []({{ site.repo }}/blob/master/docs/_includes/examples/format.md)
+
+Use `formatter` column option to format the display of bootstrap table column. _by [@wenzhixin](https://github.com/wenzhixin)_
+
+<iframe width="100%" height="300" src="http://jsfiddle.net/wenyi/e3nk137y/21/embedded/html,js,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

+ 5 - 0
docs/_includes/examples/hide-header.md

@@ -0,0 +1,5 @@
+# Hide Header []({{ site.repo }}/blob/master/docs/_includes/examples/hide-header.md)
+
+Use `showHeader: false` to hide the header of bootstrap table. _by [@wenzhixin](https://github.com/wenzhixin)_
+
+<iframe width="100%" height="300" src="http://jsfiddle.net/wenyi/e3nk137y/22/embedded/html,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

+ 7 - 1
docs/_includes/examples/sort.md

@@ -6,4 +6,10 @@
 
 Use `sortName`, `sortOrder`, `sortable` options, and `sortable`, `order` column options to set the basic sort of bootstrap table. _by [@wenzhixin](https://github.com/wenzhixin)_
 
-<iframe width="100%" height="300" src="http://jsfiddle.net/wenyi/e3nk137y/10/embedded/html,js,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
+<iframe width="100%" height="300" src="http://jsfiddle.net/wenyi/e3nk137y/18/embedded/html,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
+
+## Custom Sort
+
+Use `sorter` column option to define the custom sort of bootstrap table. _by [@wenzhixin](https://github.com/wenzhixin)_
+
+<iframe width="100%" height="300" src="http://jsfiddle.net/wenyi/e3nk137y/19/embedded/html,js,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

+ 5 - 1
docs/examples.md

@@ -13,4 +13,8 @@ lead: "The examples of bootstrap table."
 
 {% markdown examples/align.md %}
 
-{% markdown examples/sort.md %}
+{% markdown examples/sort.md %}
+
+{% markdown examples/format.md %}
+
+{% markdown examples/hide-header.md %}