Mini Shell

Direktori : /home/ardiscomtr/public_html/admin/html/js/datatables/tools/examples/
Upload File :
Current File : /home/ardiscomtr/public_html/admin/html/js/datatables/tools/examples/button_text.xml

<?xml version="1.0" encoding="UTF-8" ?>
<dt-example table-type="html" order="1">

<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><![CDATA[

You may wish to set your own text for the buttons in the TableTools toolbar, rather than relying on the default built-in text. This is done by overriding the `sButtonText` parameter of whatever button you wish to alter. The way TableTools allows you to alter a predefined button is by 'extending' it (using the `sExtends` parameter) and then setting the overriding parameter.

A full list of the parameters which can be used is [available on the DataTables.net web-site](http://datatables.net/extensions/tabletools/button_options). This example shows how to set the button text as required.

]]></info>

</dt-example>