Download (original) (raw)

The best method for getting a hold of DataTables for use in your project depends upon your programming environment. The download builder below provides a simple method that you can use to build your own custom DataTables package - including only the software that you need, and providing options to have it hosted on the DataTables CDN, download the package locally or install through a package manager such as npm, yarn or NuGET.

If you are upgrading an old version of a DataTables CDN or downloaded file created by this download builder and want to use the same build options with the latest versions, look in the JS file header and you'll find a URL that will automatically select the options needed.

Are you interested in trying the next generation of DataTables?! The DataTables 3 beta download builder is now available. See the release information and announcement for full details.

Step 1. Choose styling

DataTables

DataTables' default styling.

v2.3.8

Bootstrap 3

Legacy version of Bootstrap - useful if you need to support old browsers.

v3.3.7

Bootstrap 4

v4 of possibly the world's most widely used styling library.

v4.6.0

Bootstrap 5

The latest iteration of the ever popular Bootstrap framework.

v5.3.0

Bulma

Modern CSS framework based on Flexbox

v1.0.1

Foundation

A modern responsive styling framework.

v6.4.3

jQuery UI

A collection of Javascript widgets as well as a styling framework.

v1.13.2

Fomantic UI

Treats words and classes as exchangeable concepts. Formally Semantic UI.

v2.8.8

Step 2. Select packages

Libraries

jQuery

DOM and event utility library. Don't select if you already have it.

v3.7.0

Moment

Date and time library for ordering and formatting dates.

v2.29.4

React component

React component for DataTables

v1.0.0

Vue component

A Vue component for DataTables

v3.0.5

style-r

Don't select if you already have _STYLE_ on your page.

DataTables core

DataTables

Enhance HTML tables with advanced interaction controls.

v2.3.8

Editor

Add full editing controls to your DataTables.

Editor is a commercial extension for DataTables, it requires a license to use it for longer than the free trial period. Please create an account or login to be able to include Editor in the package.

v2.5.2

Extensions

AutoFill

Excel-like click and drag copying and filling of data.

v2.7.1

Buttons

A common framework for user interaction buttons.

v3.2.6

Column visibility

End user buttons to control column visibility.

v3.2.6

HTML5 export

Copy to clipboard and create Excel, PDF and CSV files from the table's data.

v3.2.6

JSZip

Required for the Excel HTML5 export button.

v3.10.1

pdfmake

Required for the PDF HTML5 export button.

v0.2.7

Print view

Button that will display a printable view of the table.

v3.2.6

ColReorder

Click-and-drag column reordering.

v2.1.2

ColumnControl

Column specific buttons and search controls.

v1.2.1

DateTime

Date picker used in Editor, SearchBuilder and other components for DataTables.

v1.6.3

FixedColumns

Fix one or more columns to the left or right of a scrolling table.

v5.0.5

FixedHeader

Sticky header and / or footer for the table.

v4.0.6

KeyTable

Keyboard navigation of cells in a table, just like a spreadsheet.

v2.12.2

Responsive

Dynamically show and hide columns based on the browser size.

v3.0.8

RowGroup

Show similar data grouped together by a custom data point.

v1.6.0

RowReorder

Click-and-drag reordering of rows.

v1.5.1

Scroller

Virtual rendering of a scrolling table for large data sets.

v2.4.3

SearchBuilder

User defined complex search builder.

v1.8.4

SearchPanes

Search panels for DataTables allowing rapid and customisable filtering.

v2.3.5

Select

Adds row, column and cell selection abilities to a table.

v3.1.3

StateRestore

Save and restore DataTables states.

v1.4.3

Step 3. Pick an installation method

The DataTables CDN provides a convenient way to quickly get started with DataTables. The DataTables software is hosted on the CDN (powered by CloudFlare) and you simply need to include the HTML and CSS files as directed below.

Minify

Use minified files for smaller files sizes and faster downloads.

Concatenate

Combine files together for a, typically, faster download.

Install

Copy and paste the following HTML into your page to load the software selected above.

Try it on StackBlitz

StackBlitz is a browser based IDE where you can setup an entire development environment directly in your browser. Click the button below to create a demo based on the options selected above and try it out with a basic DataTable.

The CDN option is not available when Editor is selected.

To use Editor with CDN files, deselect Editor, and download Editor separately for local file inclusion. Alternatively, click the download tab above to download all files together, or use the NPM package manager.

The files required for the link and script tags shown above can be downloaded using the button below. The package is downloaded as a zip file which should be unzipped and uploaded to your web-server.

Download files

Use the following to install the selected software in your own package:

Please note that the packages for DataTables and all of its extensions include TypeScript type definitions that will be automatically detected and used if you are using TypeScript.

The Editor NPM package is available from our private registry and you need to setup authentication before it can be used. Please see the documentation here for details of how to do this and to find your access key.

Javascript loader

To use the software selected above use the following code in your Javascript:

CSS includes

To style your table, include the following in your CSS files (note that this assumes you are using a bundler that can resolve npm packages, such as Vite):

Try it on StackBlitz

StackBlitz is a browser based IDE where you can setup an entire development environment directly in your browser. Click the button below to create a demo based on the options selected above and try it out with a basic DataTable.

Nuget is the package manager for .NET applications, the DataTables packages are hosted here so that they can be easily integrated into .NET projects.

Please note that Editor is not currently available on NuGET. Please download the files directly and reference locally, or use the NPM packages.

Install

Composer is the dependency manage for PHP. The packages are hosted and available through Composer from Packagist, which is the main composer repository.

Please note that Editor is not currently available on Composer. Please download the files directly and reference locally, or use the NPM packages.

Install