| 875 |
lars |
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 |
<link rel="stylesheet" type="text/css" href="../../../examples/resources/syntax/shCore.css">
|
|
|
8 |
<link rel="stylesheet" type="text/css" href="../../../examples/resources/demo.css">
|
|
|
9 |
<script type="text/javascript" language="javascript" src="../../../examples/resources/syntax/shCore.js"></script>
|
|
|
10 |
<script type="text/javascript" language="javascript" src="../../../examples/resources/demo.js"></script>
|
|
|
11 |
|
|
|
12 |
<title>Buttons examples - Buttons for DataTables</title>
|
|
|
13 |
</head>
|
|
|
14 |
|
|
|
15 |
<body class="dt-example">
|
|
|
16 |
<div class="container">
|
|
|
17 |
<section>
|
|
|
18 |
<h1>Buttons example <span>Buttons for DataTables</span></h1>
|
|
|
19 |
|
|
|
20 |
<div class="info">
|
|
|
21 |
<p>The Buttons extension for DataTables provides a common set of options, API methods and styling to display buttons on a page that will interact with a DataTable.
|
|
|
22 |
The core library provides the based framework upon which plug-ins can built.</p>
|
|
|
23 |
|
|
|
24 |
<p>There are four plug-ins that are part of the core Buttons software providing various utilities:</p>
|
|
|
25 |
|
|
|
26 |
<ul class="markdown">
|
|
|
27 |
<li>HTML5 export buttons - Copy to clipboard; Save to Excel, CSV and PDF</li>
|
|
|
28 |
<li>Flash export buttons - Copy to clipboard; Save to Excel, CSV and PDF for older browsers</li>
|
|
|
29 |
<li>Print view</li>
|
|
|
30 |
<li>Column visibility buttons</li>
|
|
|
31 |
</ul>
|
|
|
32 |
|
|
|
33 |
<p>Other extensions for DataTables also provide buttons - <a href="https://editor.datatables.net">Editor</a> for example make the <a href=
|
|
|
34 |
"//editor.datatables.net/reference/button/create"><code class="button" title="Editor button type">create</code></a>, <a href=
|
|
|
35 |
"//editor.datatables.net/reference/button/edit"><code class="button" title="Editor button type">edit</code></a> and <a href=
|
|
|
36 |
"//editor.datatables.net/reference/button/remove"><code class="button" title="Editor button type">remove</code></a> buttons available.</p>
|
|
|
37 |
|
|
|
38 |
<p>The examples presented here give an introduce to how Buttons can be used, the API and its various core plug-in buttons.</p>
|
|
|
39 |
</div>
|
|
|
40 |
</section>
|
|
|
41 |
</div>
|
|
|
42 |
|
|
|
43 |
<section>
|
|
|
44 |
<div class="footer">
|
|
|
45 |
<div class="gradient"></div>
|
|
|
46 |
|
|
|
47 |
<div class="liner">
|
|
|
48 |
<div class="toc">
|
|
|
49 |
<div class="toc-group">
|
|
|
50 |
<h3><a href="./column_visibility/index.html">Column Visibility</a></h3>
|
|
|
51 |
<ul class="toc">
|
|
|
52 |
<li><a href="./column_visibility/simple.html">Basic column visibility</a></li>
|
|
|
53 |
<li><a href="./column_visibility/layout.html">Multi-column layout</a></li>
|
|
|
54 |
<li><a href="./column_visibility/text.html">Internationalisation</a></li>
|
|
|
55 |
<li><a href="./column_visibility/restore.html">Restore column visibility</a></li>
|
|
|
56 |
<li><a href="./column_visibility/columns.html">Select columns</a></li>
|
|
|
57 |
<li><a href="./column_visibility/columnsToggle.html">Visibility toggle buttons</a></li>
|
|
|
58 |
<li><a href="./column_visibility/columnGroups.html">Column groups</a></li>
|
|
|
59 |
</ul>
|
|
|
60 |
</div>
|
|
|
61 |
|
|
|
62 |
<div class="toc-group">
|
|
|
63 |
<h3><a href="./flash/index.html">Flash</a></h3>
|
|
|
64 |
<ul class="toc">
|
|
|
65 |
<li><a href="./flash/simple.html">Flash export buttons</a></li>
|
|
|
66 |
<li><a href="./flash/tsv.html">Tab separated values</a></li>
|
|
|
67 |
<li><a href="./flash/filename.html">File name</a></li>
|
|
|
68 |
<li><a href="./flash/copyi18n.html">Copy button internationalisation</a></li>
|
|
|
69 |
<li><a href="./flash/pdfMessage.html">PDF message</a></li>
|
|
|
70 |
<li><a href="./flash/pdfPage.html">Page size and orientation</a></li>
|
|
|
71 |
<li><a href="./flash/hidden.html">Hidden initialisation</a></li>
|
|
|
72 |
<li><a href="./flash/swfPath.html">SWF file location</a></li>
|
|
|
73 |
</ul>
|
|
|
74 |
</div>
|
|
|
75 |
|
|
|
76 |
<div class="toc-group">
|
|
|
77 |
<h3><a href="./html5/index.html">Html5</a></h3>
|
|
|
78 |
<ul class="toc">
|
|
|
79 |
<li><a href="./html5/simple.html">HTML5 export buttons</a></li>
|
|
|
80 |
<li><a href="./html5/tsv.html">Tab separated values</a></li>
|
|
|
81 |
<li><a href="./html5/filename.html">File name</a></li>
|
|
|
82 |
<li><a href="./html5/copyi18n.html">Copy button internationalisation</a></li>
|
|
|
83 |
<li><a href="./html5/pdfMessage.html">PDF message</a></li>
|
|
|
84 |
<li><a href="./html5/pdfPage.html">PDF page size and orientation</a></li>
|
|
|
85 |
<li><a href="./html5/pdfImage.html">PDF with image</a></li>
|
|
|
86 |
<li><a href="./html5/pdfOpen.html">PDF - open in new window</a></li>
|
|
|
87 |
<li><a href="./html5/columns.html">Column selectors</a></li>
|
|
|
88 |
</ul>
|
|
|
89 |
</div>
|
|
|
90 |
|
|
|
91 |
<div class="toc-group">
|
|
|
92 |
<h3><a href="./initialisation/index.html">Initialisation</a></h3>
|
|
|
93 |
<ul class="toc">
|
|
|
94 |
<li><a href="./initialisation/simple.html">Basic initialisation</a></li>
|
|
|
95 |
<li><a href="./initialisation/export.html">File export</a></li>
|
|
|
96 |
<li><a href="./initialisation/custom.html">Custom button</a></li>
|
|
|
97 |
<li><a href="./initialisation/className.html">Class names</a></li>
|
|
|
98 |
<li><a href="./initialisation/keys.html">Keyboard activation</a></li>
|
|
|
99 |
<li><a href="./initialisation/collections.html">Collections</a></li>
|
|
|
100 |
<li><a href="./initialisation/plugins.html">Plug-ins</a></li>
|
|
|
101 |
<li><a href="./initialisation/new.html">`new` initialisation</a></li>
|
|
|
102 |
<li><a href="./initialisation/multiple.html">Multiple button groups</a></li>
|
|
|
103 |
</ul>
|
|
|
104 |
</div>
|
|
|
105 |
|
|
|
106 |
<div class="toc-group">
|
|
|
107 |
<h3><a href="./print/index.html">Print</a></h3>
|
|
|
108 |
<ul class="toc">
|
|
|
109 |
<li><a href="./print/simple.html">Print button</a></li>
|
|
|
110 |
<li><a href="./print/message.html">Custom message</a></li>
|
|
|
111 |
<li><a href="./print/columns.html">Export options - column selector</a></li>
|
|
|
112 |
<li><a href="./print/select.html">Export options - row selector</a></li>
|
|
|
113 |
<li><a href="./print/autoPrint.html">Disable auto print</a></li>
|
|
|
114 |
<li><a href="./print/customisation.html">Customisation of the print view window</a></li>
|
|
|
115 |
</ul>
|
|
|
116 |
</div>
|
|
|
117 |
|
|
|
118 |
<div class="toc-group">
|
|
|
119 |
<h3><a href="./styling/index.html">Styling</a></h3>
|
|
|
120 |
<ul class="toc">
|
|
|
121 |
<li><a href="./styling/bootstrap.html">Bootstrap styling</a></li>
|
|
|
122 |
<li><a href="./styling/foundation.html">Foundation styling</a></li>
|
|
|
123 |
<li><a href="./styling/jqueryui.html">jQuery UI styling</a></li>
|
|
|
124 |
</ul>
|
|
|
125 |
</div>
|
|
|
126 |
|
|
|
127 |
<div class="toc-group">
|
|
|
128 |
<h3><a href="./api/index.html">API</a></h3>
|
|
|
129 |
<ul class="toc">
|
|
|
130 |
<li><a href="./api/enable.html">Enable / disable</a></li>
|
|
|
131 |
<li><a href="./api/text.html">Dynamic text</a></li>
|
|
|
132 |
<li><a href="./api/addRemove.html">Adding and removing buttons dynamically</a></li>
|
|
|
133 |
<li><a href="./api/group.html">Group selection</a></li>
|
|
|
134 |
</ul>
|
|
|
135 |
</div>
|
|
|
136 |
</div>
|
|
|
137 |
|
|
|
138 |
<div class="epilogue">
|
|
|
139 |
<p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
|
|
|
140 |
Additionally, there are a wide range of <a href="http://www.datatables.net/extensions">extensions</a> and <a href=
|
|
|
141 |
"http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p>
|
|
|
142 |
|
|
|
143 |
<p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-2015<br>
|
|
|
144 |
DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>
|
|
|
145 |
</div>
|
|
|
146 |
</div>
|
|
|
147 |
</div>
|
|
|
148 |
</section>
|
|
|
149 |
</body>
|
|
|
150 |
</html>
|