Download builder
This download builder is the single best method for getting DataTables for use in your project!
It provides a simple method that you can use to select only the software that you need, and then shows you installation instructions for use via the DataTables CDN, download the package locally or install through a package manager such as npm, yarn or NuGET.
Step 1. Choose styling
Step 2. Select packages
DataTables core
Extensions (Select all)
Components
Third party libraries
Get the most out of DataTables with DataTables Plus. Start your free 15 day trial now.
Step 3. Pick an installation method
- CDN
- Download
- NPM
- NuGet
- Composer
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.
- - Use minified files for smaller files sizes and faster downloads.
- - 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 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.
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.
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.
Install
Run the following commands to add the packages required to your project, or copy the package names if you use a graphical package managers such as in Visual Studio.