MCPcopy Index your code
hub / github.com/DataTables/Buttons

github.com/DataTables/Buttons @ct_101.0.10

Chat with this repo
repository ↗ · DeepWiki ↗ · release ct_101.0.10 ↗ · + Follow
103 symbols 301 edges 54 files 32 documented · 31%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Buttons

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. Modules are also provided for data export, printing and column visibility control.

Installation

To use Buttons the primary way to obtain the software is to use the DataTables downloader. You can also include the individual files from the DataTables CDN. See the documentation for full details.

NPM and Bower

If you prefer to use a package manager such as NPM or Bower, distribution repositories are available with software built from this repository under the name datatables.net-buttons. Styling packages for Bootstrap, Foundation and other styling libraries are also available by adding a suffix to the package name.

Please see the DataTables NPM and Bower installation pages for further information. The DataTables installation manual also has details on how to use package managers with DataTables.

Basic usage

Buttons is initialised using the buttons option in the DataTables constructor, giving an array of the buttons that should be shown. Further options can be specified using this option as an object - see the documentation for details. For example:

$(document).ready( function () {
    $('#example').DataTable( {
        buttons: [ 'csv', 'excel', 'pdf', 'print' ]
    } );
} );

Documentation / support

GitHub

If you fancy getting involved with the development of Buttons and help make it better, please refer to its GitHub repo

Extension points exported contracts — how you extend this code

ButtonSettings (Interface)
* Buttons extension options
types.d.ts
Settings (Interface)
(no doc)
types.d.ts
LanguageSettings (Interface)
(no doc)
types.d.ts
StaticFunctions (Interface)
(no doc)
types.d.ts
ButtonStaticFunctions (Interface)
(no doc)
types.d.ts

Core symbols most depended-on inside this repo

text
called by 213
types.d.ts
button
called by 188
types.d.ts
processing
called by 45
types.d.ts
add
called by 32
types.d.ts
remove
called by 23
types.d.ts
exportData
called by 18
types.d.ts
container
called by 16
types.d.ts
disable
called by 15
types.d.ts

Shape

Function 53
Method 27
Interface 23

Languages

TypeScript100%

Modules by API surface

types.d.ts50 symbols
js/buttons.html5.js26 symbols
js/dataTables.buttons.js20 symbols
js/buttons.print.js4 symbols
test/buttons/pageLength.js1 symbols
test/buttons/columnsToggle.js1 symbols
test/api/button().active().js1 symbols

For agents

$ claude mcp add Buttons \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact