getting-started.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Getting started &middot; Bootstrap Table</title>
  6. <meta name="author" content="zhixin">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="assets/bulletin/bulletin.css">
  10. <link rel="stylesheet" href="../src/bootstrap-table.css">
  11. <link rel="stylesheet" href="docs.css">
  12. <!--<link rel="stylesheet" href="//wenzhixin.net.cn/css/fork.css">-->
  13. <!--[if lt IE 9]>
  14. <script src="//wenzhixin.net.cn/js/html5shiv.js"></script>
  15. <script src="//wenzhixin.net.cn/js/respond.min.js"></script>
  16. <![endif]-->
  17. </head>
  18. <body>
  19. <a class="sr-only" href="#content">Skip to main content</a>
  20. <header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
  21. <div class="container">
  22. <button class="navbar-toggle" type="button" data-toggle="collapse"
  23. data-target=".bs-navbar-collapse">
  24. <span class="sr-only">Toggle navigation</span>
  25. <span class="icon-bar"></span>
  26. <span class="icon-bar"></span>
  27. <span class="icon-bar"></span>
  28. </button>
  29. <div class="navbar-header">
  30. <a class="navbar-brand" href="index.html">
  31. Bootstrap Table
  32. </a>
  33. </div>
  34. <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
  35. <ul class="nav navbar-nav">
  36. <li class="active">
  37. <a href="getting-started.html">Getting started</a>
  38. </li>
  39. <li>
  40. <a href="documentation.html">Documentation</a>
  41. </li>
  42. <li>
  43. <a href="examples.html">Examples</a>
  44. </li>
  45. </ul>
  46. <ul class="nav navbar-nav navbar-right">
  47. <!-- GitHub buttons: see http://ghbtns.com -->
  48. <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>
  49. <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>
  50. <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>
  51. </ul>
  52. </nav>
  53. </div>
  54. </header>
  55. <div class="bs-header" id="content">
  56. <div class="container">
  57. <h1>Getting started</h1>
  58. <p>An overview of Bootstrap Table, how to download and use, basic templates, and more.</p>
  59. </div>
  60. </div>
  61. <div class="container">
  62. <div class="row">
  63. <div class="col-md-3">
  64. <div class="bs-sidebar" role="complementary">
  65. <ul class="nav bs-sidenav">
  66. <li><a href="#download">Download</a></li>
  67. <li>
  68. <a href="#usage">Usage</a>
  69. <ul class="nav">
  70. <li><a href="#via-data">Via data attributes</a></li>
  71. <li><a href="#via-javascript">Via JavaScript</a></li>
  72. <li><a href="#options">Options</a></li>
  73. </ul>
  74. </li>
  75. </ul>
  76. </div>
  77. </div>
  78. <div class="col-md-9" role="main">
  79. <div class="page-header alert alert-info">
  80. <a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>
  81. <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.
  82. </div>
  83. <div>
  84. <div class="page-header">
  85. <h1 id="download">Download</h1>
  86. </div>
  87. <p>
  88. <a href="https://github.com/wenzhixin/bootstrap-table/archive/master.zip">Download source</a>
  89. </p>
  90. <p>
  91. <a href="https://github.com/wenzhixin/bootstrap-table">Clone or fork via GitHub</a>
  92. </p>
  93. </div>
  94. <div>
  95. <div class="page-header">
  96. <h1 id="usage">Usage</h1>
  97. </div>
  98. <p>Include Bootstrap library (if your project doesn’t use it already) and bootstrap-table.css in the head tag your html document.</p>
  99. <pre><code>&lt;link rel="stylesheet" href="bootstrap.css"&gt;
  100. &lt;link rel="stylesheet" href="bootstrap-table.css"&gt;</code></pre>
  101. <p>Include jQuery library (if your project doesn’t use it already) and bootstrap-table.js in the head tag or at the very bottom of your document, just before the closing body tag (usually recommended for better performance).</p>
  102. <pre><code>&lt;script src="jquery.min.js"&gt;&lt;/script&gt;
  103. &lt;script src="bootstrap-table.js"&gt;&lt;/script&gt;</code></pre>
  104. <hr>
  105. <p>The bootstrap table plugin displays data in a tabular format, via data attributes or JavaScript.</p>
  106. <h2 id="via-data">Via data attributes</h2>
  107. <p>Activate bootstrap table without writing JavaScript. Set data-toggle="table" on a normal table.</p>
  108. <pre><code>&lt;table data-toggle="table" data-url="data.json"&gt;
  109. &lt;thead&gt;
  110. ...
  111. &lt;/thead&gt;
  112. &lt;/table&gt;</code></pre>
  113. <h2 id="via-javascript">Via JavaScript</h2>
  114. <p>Call a bootstrap table with id table with JavaScript.</p>
  115. <pre><code>$('#table').bootstrapTable({
  116. url: 'data.json'
  117. });</code></pre>
  118. <h2 id="options">Options</h2>
  119. <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-url="data.json"</code>. More options see the <a href="documentation.html">Documentation</a> or the <a href="examples.html">Examples</a>.</p>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <!--<a href="https://github.com/wenzhixin/bootstrap-table" class="fork_me"></a>-->
  125. <footer class="bs-footer" role="contentinfo">
  126. <div class="container">
  127. <p>Copyright © 2012-2014, Bootstrap Table is licensed under the The MIT License. Coded by wenzhixin. </p>
  128. <ul class="footer-links">
  129. <li>Currently: v1.1.5</li>
  130. <li class="muted">·</li>
  131. <li><a href="http://wenzhixin.net.cn">My website</a></li>
  132. <li class="muted">·</li>
  133. <li><a href="http://repos.wenzhixin.net.cn">My repos</a></li>
  134. <li class="muted">·</li>
  135. <li><a href="https://github.com/wenzhixin">Github (@wenzhixin)</a></li>
  136. <li class="muted">·</li>
  137. <li><a href="https://github.com/wenzhixin/bootstrap-table/issues?state=open">Issues</a></li>
  138. <li class="muted">·</li>
  139. <li><a href="mailto:wenzhixin2010@gmail.com">Email</a></li>
  140. </ul>
  141. </div>
  142. </footer>
  143. <div class="goto-top">
  144. <i class="glyphicon glyphicon-plane"></i>
  145. </div>
  146. <div id="bulletin" class="bulletin">
  147. <ul>
  148. <li><a href="http://repos.wenzhixin.net.cn/">My Repositories - Show my repositories list.</a></li>
  149. <li><a href="http://wenzhixin.net.cn/p/multiple-select/">Multiple Select - Multiple select is a jQuery plugin to select multiple elements with checkboxes.</a></li>
  150. <li><a href="https://github.com/wenzhixin/bootstrap-show-password">Bootstrap Show Password - Show/hide password plugin for bootstrap.</a></li>
  151. <li><a href="http://wenzhixin.net.cn/p/bulletin/">Bulletin - A jQuery plugin to show bulletin for website.</a></li>
  152. </ul>
  153. <div class="close"><a href="javascript:void(0)">×</a></div>
  154. </div>
  155. <script src="assets/jquery.min.js"></script>
  156. <script src="assets/bootstrap/js/bootstrap.min.js"></script>
  157. <script src="assets/bulletin/jquery.bulletin.js"></script>
  158. <script src="../src/bootstrap-table.js"></script>
  159. <script src="common.js"></script>
  160. <script src="//wenzhixin.net.cn/js/analytics.js"></script>
  161. <!-- Baidu share -->
  162. <script id="bdshare_js" data="type=slide&amp;img=6&amp;pos=right&amp;uid=6692400"></script>
  163. <script id="bdshell_js"></script>
  164. <!-- Go to www.addthis.com/dashboard to customize your tools -->
  165. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-53c78e93678a7b4d"></script>
  166. </body>
  167. </html>