浏览代码

Add example and update follow me button.

zhixin 11 年之前
父节点
当前提交
872bc59e5b
共有 4 个文件被更改,包括 19 次插入5 次删除
  1. 1 1
      docs/documentation.html
  2. 16 2
      docs/examples.html
  3. 1 1
      docs/getting-started.html
  4. 1 1
      docs/index.html

+ 1 - 1
docs/documentation.html

@@ -65,7 +65,7 @@
                 <!-- GitHub buttons: see http://ghbtns.com -->
                 <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe></li>
                 <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe></li>
-                <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="165" height="20"></iframe></li>
+                <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="175" height="20"></iframe></li>
             </ul>
         </nav>
     </div>

+ 16 - 2
docs/examples.html

@@ -74,7 +74,7 @@
                 <!-- GitHub buttons: see http://ghbtns.com -->
                 <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe></li>
                 <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe></li>
-                <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="165" height="20"></iframe></li>
+                <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="175" height="20"></iframe></li>
             </ul>
         </nav>
     </div>
@@ -812,7 +812,7 @@
                     </button>
                 </div>
                 <div class="bs-example">
-                    <table data-url="data1.json" data-height="299" data-search="true">
+                    <table id="events-id2" data-url="data1.json" data-height="299" data-search="true">
                         <thead>
                         <tr>
                             <th data-field="state" data-checkbox="true"></th>
@@ -878,6 +878,9 @@
                         <button class="btn btn-default" id="append-data" data-method="append">
                             Append Data
                         </button>
+                        <button class="btn btn-default" id="remove-data" data-method="remove">
+                            Remove Data
+                        </button>
                         <button class="btn btn-default" id="merge-cells">
                             Merge Cells
                         </button>
@@ -947,6 +950,17 @@
                                         '#show-loading, #hide-loading, #refresh').click(function () {
                                     $table.bootstrapTable($(this).data('method'), getRows());
                                 });
+                                $('#remove-data').click(function () {
+                                    var selects = $table.bootstrapTable('getSelections');
+                                        ids = $.map(selects, function (row) {
+                                            return row.id;
+                                        });
+
+                                    $table.bootstrapTable('remove', {
+                                        key: 'id',
+                                        values: ids
+                                    });
+                                });
                                 $('#merge-cells').click(function () {
                                     $table.bootstrapTable('mergeCells', {
                                         index: 1,

+ 1 - 1
docs/getting-started.html

@@ -66,7 +66,7 @@
                 <!-- GitHub buttons: see http://ghbtns.com -->
                 <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe></li>
                 <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe></li>
-                <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="165" height="20"></iframe></li>
+                <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="175" height="20"></iframe></li>
             </ul>
         </nav>
     </div>

+ 1 - 1
docs/index.html

@@ -65,7 +65,7 @@
                 <!-- GitHub buttons: see http://ghbtns.com -->
                 <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe></li>
                 <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe></li>
-                <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="165" height="20"></iframe></li>
+                <li><iframe class="navbar-text" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="175" height="20"></iframe></li>
             </ul>
         </nav>
     </div>