Browse Source

Update readme.

zhixin 11 years ago
parent
commit
8911e01db7
5 changed files with 67 additions and 8 deletions
  1. 5 5
      README.md
  2. 1 1
      docs/documentation.html
  3. 1 1
      docs/examples.html
  4. 1 1
      docs/getting-started.html
  5. 59 0
      docs/test.html

+ 5 - 5
README.md

@@ -7,7 +7,7 @@ The table displays data in a tabular format and offers rich support to radio, ch
 
 ## LICENSE
 
-**NOTE:** Bootstrap Table is licensed under the [The MIT License](https://github.com/wenzhixin/bootstrap-table/blob/master/LICENSE). Completely free, you can arbitrarily use and modify this plugin. If you like this plugin, you can **Star** this repo, your support is my biggest motive force, thanks.
+**NOTE:** Bootstrap Table is licensed under the [The MIT License](https://github.com/wenzhixin/bootstrap-table/blob/master/LICENSE). Completely free, you can arbitrarily use and modify this plugin. If this plugin is useful to you, you can **Star** this repo, your support is my biggest motive force, thanks.
 
 ## Features
 
@@ -26,10 +26,10 @@ The table displays data in a tabular format and offers rich support to radio, ch
 * Card view
 * Localization
 
-## Contributors
+## Acknowledgements
 
-[CONTRIBUTORS](https://github.com/wenzhixin/bootstrap-table/blob/master/CONTRIBUTORS.md)
+Thanks to everyone who have given feedback and submitted pull requests. A list of all the contributors can be found [here](https://github.com/wenzhixin/bootstrap-table/blob/master/CONTRIBUTORS.md).
 
-## Changelog
+## Release History
 
-[CHANGELOG](https://github.com/wenzhixin/bootstrap-table/blob/master/CHANGELOG.md)
+Look at the [Change Log](https://github.com/wenzhixin/bootstrap-table/blob/master/CHANGELOG.md)

+ 1 - 1
docs/documentation.html

@@ -73,7 +73,7 @@
         <div class="col-md-9" role="main">
             <div class="page-header alert alert-info">
                 <a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>
-                <b>NOTE:</b> Bootstrap Table is licensed under the <a href="https://github.com/wenzhixin/bootstrap-table/blob/master/LICENSE">The MIT License</a>. Completely free, you can arbitrarily use and modify this plugin. If you like this plugin, you can <a href="http://github.com/wenzhixin/bootstrap-table"><b>Star</b></a> this repo, your support is my biggest motive force, thanks.
+                <b>NOTE:</b> Bootstrap Table is licensed under the <a href="https://github.com/wenzhixin/bootstrap-table/blob/master/LICENSE">The MIT License</a>. Completely free, you can arbitrarily use and modify this plugin. If this plugin is useful to you, you can <a href="http://github.com/wenzhixin/bootstrap-table"><b>Star</b></a> this repo, your support is my biggest motive force, thanks.
             </div>
             <div>
                 <div class="page-header">

+ 1 - 1
docs/examples.html

@@ -116,7 +116,7 @@
         <div class="col-md-9 span9" role="main">
             <div class="page-header alert alert-info">
                 <a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>
-                <b>NOTE:</b> Bootstrap Table is licensed under the <a href="https://github.com/wenzhixin/bootstrap-table/blob/master/LICENSE">The MIT License</a>. Completely free, you can arbitrarily use and modify this plugin. If you like this plugin, you can <a href="http://github.com/wenzhixin/bootstrap-table"><b>Star</b></a> this repo, your support is my biggest motive force, thanks.
+                <b>NOTE:</b> Bootstrap Table is licensed under the <a href="https://github.com/wenzhixin/bootstrap-table/blob/master/LICENSE">The MIT License</a>. Completely free, you can arbitrarily use and modify this plugin. If this plugin is useful to you, you can <a href="http://github.com/wenzhixin/bootstrap-table"><b>Star</b></a> this repo, your support is my biggest motive force, thanks.
             </div>
             <div>
                 <div>

+ 1 - 1
docs/getting-started.html

@@ -79,7 +79,7 @@
         <div class="col-md-9" role="main">
             <div class="page-header alert alert-info">
                 <a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>
-                <b>NOTE:</b> Bootstrap Table is licensed under the <a href="https://github.com/wenzhixin/bootstrap-table/blob/master/LICENSE">The MIT License</a>. Completely free, you can arbitrarily use and modify this plugin. If you like this plugin, you can <a href="http://github.com/wenzhixin/bootstrap-table"><b>Star</b></a> this repo, your support is my biggest motive force, thanks.
+                <b>NOTE:</b> Bootstrap Table is licensed under the <a href="https://github.com/wenzhixin/bootstrap-table/blob/master/LICENSE">The MIT License</a>. Completely free, you can arbitrarily use and modify this plugin. If this plugin is useful to you, you can <a href="http://github.com/wenzhixin/bootstrap-table"><b>Star</b></a> this repo, your support is my biggest motive force, thanks.
             </div>
             <div>
                 <div class="page-header">

+ 59 - 0
docs/test.html

@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <title>Test &middot; Bootstrap Table</title>
+    <meta name="author" content="zhixin">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
+    <!--<link rel="stylesheet" href="assets/bootstrap2.3/css/bootstrap.min.css">-->
+    <!--<link rel="stylesheet" href="assets/bootstrap2.3/css/bootstrap-responsive.min.css">-->
+    <link rel="stylesheet" href="../src/bootstrap-table.css">
+</head>
+<body>
+<div class="container">
+    <div>
+        <label>Cells: </label><input id="cells" type="text" placeholder="Cells" value="5">
+        <label>Rows: </label><input id="rows" type="text" placeholder="Rows" value="100">
+        <button id="build" class="btn btn-default">Build</button>
+    </div>
+    <table id="table"></table>
+</div>
+<script src="assets/jquery.min.js"></script>
+<script src="assets/bootstrap/js/bootstrap.min.js"></script>
+<!--<script src="assets/bootstrap2.3/js/bootstrap.min.js"></script>-->
+<script src="../src/bootstrap-table.js"></script>
+<script>
+    $(function () {
+        $('#build').click(build).trigger('click');
+    });
+
+    function build() {
+        var cells = $('#cells').val(),
+            rows = $('#rows').val(),
+            i, j, row,
+            columns = [],
+            data = [];
+
+        for (i = 0; i < cells; i++) {
+            columns.push({
+                field: 'field' + i,
+                title: 'Cell' + i
+            });
+        }
+        for (i = 0; i < rows; i++) {
+            row = {};
+            for (j = 0; j < cells; j++) {
+                row['field' + j] = 'Row-' + i + '-' + j;
+            }
+            data.push(row);
+        }
+        $('#table').bootstrapTable('destroy').bootstrapTable({
+            height: 400,
+            columns: columns,
+            data: data
+        });
+    }
+</script>
+</body>
+</html>