datatables-tabletools

2018-08-08 admin

datatables-tabletools是什么

什么是datatables-tabletools,TableTools is a plug-in for the DataTables HTML table enhancer, which adds a highly customisable button toolbar to a DataTable.

datatables-tabletools介绍、datatables-tabletools使用

Important - this is retired software

Please note that TableTools has now been retired and replaced by the Buttons and Select extensions which offers significant improvements and API integration with the rest of DataTables and the other extensions.

It is strongly recommended that you upgrade if possible to Buttons and Select, and to not use TableTools in any new projects.

TableTools

TableTools is a plug-in for the DataTables HTML table enhancer, which adds a highly customisable button toolbar to a DataTable. Key features include:

  • Copy to clipboard
  • Save table data as CSV, XLS or PDF files
  • Print view for clean printing
  • Row selection options
  • Easy use predefined buttons
  • Simple customisation of buttons
  • Well defined API for advanced control

Installation

To use TableTools, first download DataTables ( http://datatables.net/download ) and place the unzipped TableTools package into a extensions directory in the DataTables package (in DataTables 1.9- use the extras directory). This will allow the pages in the examples to operate correctly. To see the examples running, open the examples directory in your web-browser.

Basic usage

TableTools is initialised using the T option that it adds to DataTables’ dom option. For example:

$(document).ready( function () {
	$('#example').DataTable( {
		dom: 'T<"clear">lfrtip'
	} );
} );

Documentation / support

GitHub

If you fancy getting involved with the development of TableTools and help make it better, please refer to its GitHub repo: https://github.com/DataTables/TableTools

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-37571.html

文章标题:datatables-tabletools

回到顶部