Browse Source

Update docs and examples.

zhixin 11 years ago
parent
commit
d27203fc78
2 changed files with 10 additions and 1 deletions
  1. 2 0
      docs/docs.js
  2. 8 1
      docs/examples.html

+ 2 - 0
docs/docs.js

@@ -310,6 +310,8 @@ $(function () {
             {name: 'load', parameter: 'data', description: 'Load the data to table.'}
         ]).bootstrapTable('append', [
             {name: 'append', parameter: 'data', description: 'Append the data to table.'},
+            {name: 'showLoading', parameter: 'none', description: 'Show loading status.'},
+            {name: 'hideLoading', parameter: 'none', description: 'Hide loading status.'},
             {name: 'mergeCells', parameter: 'options', description: 'Merge some cells to one cell, the options contains following properties:'},
             {name: 'mergeCells', parameter: 'options', description: 'index: the row index.'},
             {name: 'mergeCells', parameter: 'options', description: 'field: the field name.'},

+ 8 - 1
docs/examples.html

@@ -458,6 +458,12 @@
                         <button class="btn btn-default" id="uncheck-all" data-method="uncheckAll">
                             Uncheck All
                         </button>
+                        <button class="btn btn-default" id="show-loading" data-method="showLoading">
+                            Show Loading
+                        </button>
+                        <button class="btn btn-default" id="hide-loading" data-method="hideLoading">
+                            Hide Loading
+                        </button>
                     </div>
                     <table id="table-methods-table" data-height="246">
                         <thead>
@@ -493,7 +499,8 @@
                             $('#get-selections').click(function() {
                                 alert('Selected values: ' + JSON.stringify($table.bootstrapTable('getSelections')));
                             });
-                            $('#load-data, #append-data, #check-all, #uncheck-all').click(function() {
+                            $('#load-data, #append-data, #check-all, #uncheck-all, ' +
+                                    '#show-loading, #hide-loading').click(function() {
                                 $table.bootstrapTable($(this).data('method'), getRows());
                             });
                             $('#merge-cells').click(function() {