| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Documentation · 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="../src/bootstrap-table.css">
- <link rel="stylesheet" href="docs.css">
- <!--<link rel="stylesheet" href="//wenzhixin.net.cn/css/fork.css">-->
- <!--[if lt IE 9]>
- <script src="//wenzhixin.net.cn/js/html5shiv.js"></script>
- <script src="//wenzhixin.net.cn/js/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <a class="sr-only" href="#content">Skip to main content</a>
- <header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
- <div class="container">
- <div class="navbar-header">
- <button class="navbar-toggle" type="button" data-toggle="collapse"
- data-target=".bs-navbar-collapse">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="index.html">
- Bootstrap Table
- </a>
- </div>
- <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
- <ul class="nav navbar-nav">
- <li>
- <a href="getting-started.html">Getting started</a>
- </li>
- <li class="active">
- <a href="documentation.html">Documentation</a>
- </li>
- <li>
- <a href="examples.html">Examples</a>
- </li>
- </ul>
- <ul class="nav navbar-nav navbar-right">
- <!-- 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>
- </ul>
- </nav>
- </div>
- </header>
- <div class="bs-header" id="content">
- <div class="container">
- <h1>Documentation</h1>
- <p>The documentation contains Table Properties, Column Properties, Events, Methods, and much more.</p>
- </div>
- </div>
- <div class="container">
- <div class="row">
- <div class="col-md-3">
- <div class="bs-sidebar" role="complementary">
- <ul class="nav bs-sidenav">
- <li><a href="#properties">Table Properties</a></li>
- <li><a href="#columns">Column Properties</a></li>
- <li><a href="#events">Events</a></li>
- <li><a href="#methods">Methods</a></li>
- <li><a href="#localizations">Localizations</a></li>
- <li><a href="#the-defaults">The Defaults</a></li>
- </ul>
- </div>
- </div>
- <div class="col-md-9" role="main">
- <div class="page-header alert alert-info">
- <a class="close" data-dismiss="alert" href="#" aria-hidden="true">×</a>
- Bootstrap Table is licensed under the The MIT License. Completely free, you can arbitrarily use and modify this plugin. If you like this plugin, you can give me a <a href="http://github.com/wenzhixin/bootstrap-table">star</a>, and I will do better, thanks.
- </div>
- <div>
- <div class="page-header">
- <h1 id="properties">Table Properties:</h1>
- </div>
- <table id="table"></table>
- </div>
- <div>
- <div class="page-header">
- <h1 id="columns">Column Properties:</h1>
- </div>
- <table id="column"></table>
- </div>
- <div>
- <div class="page-header">
- <h1 id="events">Events:</h1>
- </div>
- <table id="event"></table>
- </div>
- <div>
- <div class="page-header">
- <h1 id="methods">Methods:</h1>
- </div>
- <table id="method"></table>
- </div>
- <div>
- <div class="page-header">
- <h1 id="localizations">Localizations:</h1>
- </div>
- <table id="localization"></table>
- </div>
- <div>
- <div class="page-header">
- <h1 id="the-defaults">The Defaults:</h1>
- </div>
- <div>
- <pre><code><script>
- $.extend($.fn.bootstrapTable.defaults, {
- bootstrapVersion: 3,
- classes: 'table table-hover',
- height: undefined,
- undefinedText: '-',
- sortName: undefined,
- sortOrder: 'asc',
- striped: false,
- columns: [],
- data: [],
- method: 'get',
- url: undefined,
- contentType: 'application/json',
- queryParams: function(params) {return {};}, // pageSize, pageNumber, searchText
- pagination: false,
- sidePagination: 'client', // client or server
- totalRows: 0, // server side need to set
- pageNumber: 1,
- pageSize: 10,
- pageList: [10, 25, 50, 100],
- search: false,
- selectItemName: 'btSelectItem',
- showHeader: true,
- showColumns: false,
- idField: undefined,
- cardView: false,
- clickToSelect: false,
- toolbar: undefined,
- rowStyle: function(row, index) {return {};},
- formatLoadingMessage: function() {
- return 'Loading, please wait…';
- },
- formatRecordsPerPage: function(pageNumber) {
- return sprintf('%s records per page', pageNumber);
- },
- formatShowingRows: function(pageFrom, pageTo, totalRows) {
- return sprintf('Showing %s to %s of %s rows', pageFrom, pageTo, totalRows);
- },
- formatSearch: function() {
- return 'Search';
- },
- formatNoMatches: function() {
- return 'No matching records found';
- },
- onClickRow: function(item) {return false;},
- onSort: function(name, order) {return false;},
- onCheck: function(row) {return false;},
- onUncheck: function(row) {return false;},
- onCheckAll: function() {return false;},
- onUncheckAll: function() {return false;},
- onLoadSuccess: function(data) {return false;},
- onLoadError: function(status) {return false;},
- onBeforeLoad: function(res) {return res;}
- });
- $.extend($.fn.bootstrapTable.columnDefaults, {
- radio: false,
- checkbox: false,
- field: undefined,
- title: undefined,
- align: undefined, // left, right, center
- valign: undefined, // top, middle, bottom
- width: undefined,
- sortable: false,
- order: 'asc', // asc, desc
- visible: true,
- formatter: undefined,
- sorter: undefined
- });
- </script>
- </code></pre>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--<a href="https://github.com/wenzhixin/bootstrap-table" class="fork_me"></a>-->
- <footer class="bs-footer" role="contentinfo">
- <div class="container">
- <p>Copyright © 2012-2014, Bootstrap Table is licensed under the The MIT License. Coded by wenzhixin. </p>
- <ul class="footer-links">
- <li>Currently: v1.0.5</li>
- <li class="muted">·</li>
- <li><a href="http://wenzhixin.net.cn">My website</a></li>
- <li class="muted">·</li>
- <li><a href="http://repos.wenzhixin.net.cn">My repos</a></li>
- <li class="muted">·</li>
- <li><a href="https://github.com/wenzhixin">Github (@wenzhixin)</a></li>
- <li class="muted">·</li>
- <li><a href="https://github.com/wenzhixin/bootstrap-table/issues?state=open">Issues</a></li>
- <li class="muted">·</li>
- <li><a href="mailto:wenzhixin2010@gmail.com">Email</a></li>
- </ul>
- </div>
- </footer>
- <script src="../assets/jquery.min.js"></script>
- <script src="../assets/bootstrap/js/bootstrap.min.js"></script>
- <script src="../src/bootstrap-table.js"></script>
- <script src="docs.js"></script>
- <script src="//wenzhixin.net.cn/js/analytics.js"></script>
- </body>
- </html>
|