mirror of https://github.com/ColorlibHQ/gentelella
44 lines
1.2 KiB
XML
Executable File
44 lines
1.2 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<dt-example table-type="html" order="12">
|
|
|
|
<css lib="datatables tabletools" />
|
|
<js lib="jquery datatables tabletools">
|
|
<![CDATA[
|
|
$(document).ready(function() {
|
|
$('#example').DataTable( {
|
|
"dom": 'T<"clear">lfrtip',
|
|
"tableTools": {
|
|
"aButtons": [
|
|
{
|
|
"sExtends": "copy",
|
|
"sButtonText": "Copy to clipboard"
|
|
},
|
|
{
|
|
"sExtends": "csv",
|
|
"sButtonText": "Save to CSV"
|
|
},
|
|
{
|
|
"sExtends": "xls",
|
|
"oSelectorOpts": {
|
|
page: 'current'
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} );
|
|
} );
|
|
]]>
|
|
</js>
|
|
|
|
<title lib="TableTools">Custom button text</title>
|
|
|
|
<info><. This example shows how to set the button text as required.
|
|
|
|
]]></info>
|
|
|
|
</dt-example>
|