Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / pybind / mgr / dashboard / static / AdminLTE-2.3.7 / plugins / datatables / extensions / Scroller / examples / simple.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4         <meta charset="utf-8">
5         <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
6         <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
7
8         <title>Scroller example - Basic initialisation</title>
9         <link rel="stylesheet" type="text/css" href="../../../media/css/jquery.dataTables.css">
10         <link rel="stylesheet" type="text/css" href="../css/dataTables.scroller.css">
11         <link rel="stylesheet" type="text/css" href="../../../examples/resources/syntax/shCore.css">
12         <link rel="stylesheet" type="text/css" href="../../../examples/resources/demo.css">
13         <style type="text/css" class="init">
14
15         </style>
16         <script type="text/javascript" language="javascript" src="../../../media/js/jquery.js"></script>
17         <script type="text/javascript" language="javascript" src="../../../media/js/jquery.dataTables.js"></script>
18         <script type="text/javascript" language="javascript" src="../js/dataTables.scroller.js"></script>
19         <script type="text/javascript" language="javascript" src="../../../examples/resources/syntax/shCore.js"></script>
20         <script type="text/javascript" language="javascript" src="../../../examples/resources/demo.js"></script>
21         <script type="text/javascript" language="javascript" class="init">
22
23
24 $(document).ready(function() {
25         $('#example').DataTable( {
26                 ajax:           "data/2500.txt",
27                 deferRender:    true,
28                 dom:            "frtiS",
29                 scrollY:        200,
30                 scrollCollapse: true
31         } );
32 } );
33
34
35         </script>
36 </head>
37
38 <body class="dt-example">
39         <div class="container">
40                 <section>
41                         <h1>Scroller example <span>Basic initialisation</span></h1>
42
43                         <div class="info">
44                                 <p>Scroller is a plug-in for DataTables which enhances DataTables' built-in scrolling features to allow
45                                 large amounts of data to be rendered on page very quickly. This is done by Scroller through the use of
46                                 a virtual rendering technique that will render only the part of the table that is actually required for
47                                 the current view.</p>
48
49                                 <p>Note that Scroller assumes that all rows are of the same height (in order to preform the required
50                                 calculations. You can use <code>td { white-space: nowrap; }</code> in your CSS to ensure that text in
51                                 rows does not wrap.</p>
52
53                                 <p>This example shows how Scroller for DataTables can be initialised by simply including the character
54                                 <code>S</code> in sDom (note that the <code>S</code> must come after the <code>t</code> in sDom).
55                                 Deferred rendering an and Ajax data source are also used in this example.</p>
56                         </div>
57
58                         <table id="example" class="display" cellspacing="0" width="100%">
59                                 <thead>
60                                         <tr>
61                                                 <th>ID</th>
62                                                 <th>First name</th>
63                                                 <th>Last name</th>
64                                                 <th>ZIP / Post code</th>
65                                                 <th>Country</th>
66                                         </tr>
67                                 </thead>
68                         </table>
69
70                         <ul class="tabs">
71                                 <li class="active">Javascript</li>
72                                 <li>HTML</li>
73                                 <li>CSS</li>
74                                 <li>Ajax</li>
75                                 <li>Server-side script</li>
76                         </ul>
77
78                         <div class="tabs">
79                                 <div class="js">
80                                         <p>The Javascript shown below is used to initialise the table shown in this
81                                         example:</p><code class="multiline brush: js;">$(document).ready(function() {
82         $('#example').DataTable( {
83                 ajax:           &quot;data/2500.txt&quot;,
84                 deferRender:    true,
85                 dom:            &quot;frtiS&quot;,
86                 scrollY:        200,
87                 scrollCollapse: true
88         } );
89 } );</code>
90
91                                         <p>In addition to the above code, the following Javascript library files are loaded for use in this
92                                         example:</p>
93
94                                         <ul>
95                                                 <li><a href="../../../media/js/jquery.js">../../../media/js/jquery.js</a></li>
96                                                 <li><a href=
97                                                 "../../../media/js/jquery.dataTables.js">../../../media/js/jquery.dataTables.js</a></li>
98                                                 <li><a href="../js/dataTables.scroller.js">../js/dataTables.scroller.js</a></li>
99                                         </ul>
100                                 </div>
101
102                                 <div class="table">
103                                         <p>The HTML shown below is the raw HTML table element, before it has been enhanced by
104                                         DataTables:</p>
105                                 </div>
106
107                                 <div class="css">
108                                         <div>
109                                                 <p>This example uses a little bit of additional CSS beyond what is loaded from the library
110                                                 files (below), in order to correctly display the table. The additional CSS used is shown
111                                                 below:</p><code class="multiline brush: js;"></code>
112                                         </div>
113
114                                         <p>The following CSS library files are loaded for use in this example to provide the styling of the
115                                         table:</p>
116
117                                         <ul>
118                                                 <li><a href=
119                                                 "../../../media/css/jquery.dataTables.css">../../../media/css/jquery.dataTables.css</a></li>
120                                                 <li><a href="../css/dataTables.scroller.css">../css/dataTables.scroller.css</a></li>
121                                         </ul>
122                                 </div>
123
124                                 <div class="ajax">
125                                         <p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data
126                                         will update automatically as any additional data is loaded.</p>
127                                 </div>
128
129                                 <div class="php">
130                                         <p>The script used to perform the server-side processing for this table is shown below. Please note
131                                         that this is just an example script using PHP. Server-side processing scripts can be written in any
132                                         language, using <a href="//datatables.net/manual/server-side">the protocol described in the
133                                         DataTables documentation</a>.</p>
134                                 </div>
135                         </div>
136                 </section>
137         </div>
138
139         <section>
140                 <div class="footer">
141                         <div class="gradient"></div>
142
143                         <div class="liner">
144                                 <h2>Other examples</h2>
145
146                                 <div class="toc">
147                                         <div class="toc-group">
148                                                 <h3><a href="./index.html">Examples</a></h3>
149                                                 <ul class="toc active">
150                                                         <li class="active"><a href="./simple.html">Basic initialisation</a></li>
151                                                         <li><a href="./state_saving.html">State saving</a></li>
152                                                         <li><a href="./large_js_source.html">Client-side data source (50,000 rows)</a></li>
153                                                         <li><a href="./server-side_processing.html">Server-side processing (5,000,000
154                                                         rows)</a></li>
155                                                         <li><a href="./api_scrolling.html">API</a></li>
156                                                 </ul>
157                                         </div>
158                                 </div>
159
160                                 <div class="epilogue">
161                                         <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full
162                                         information about its API properties and methods.<br>
163                                         Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and
164                                         <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of
165                                         DataTables.</p>
166
167                                         <p class="copyright">DataTables designed and created by <a href=
168                                         "http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2014<br>
169                                         DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>
170                                 </div>
171                         </div>
172                 </div>
173         </section>
174 </body>
175 </html>