• Stars
    star
    616
  • Rank 72,837 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DataTables source repository

DataTables plug-in for jQuery - source repository

This git repository contains the un-built source files for DataTables - the table enhancing plug-in for jQuery. If you are looking to use DataTables, rather than to modify it, please use the built files in the build repo: //github.com/DataTables/DataTables. There are instructions there on how to use DataTables, and on the DataTables site which contains the full documentation for DataTables.

Installing DataTables

To use DataTables, 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, NuGET and Composer

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

Please see the DataTables download page for further information. The DataTables installation manual also has details on how to use package managers with DataTables.

Why two repos

The source repo for DataTables is kept distinct from the built repo in order to provide separation between generated files and source files. The majority of the files in the DataTables built repo are generated by compiling source files from this repo, including:

  • Main Javascript file - compiled from multiple individual Javascript files
  • CSS files -compiled from SASS files
  • Examples - compiled from a common data source data and HTML template files

This separation allows developers who simply want to use DataTables as is, to do so, while keeping the source repo clean of generated files.

Building

DataTables can be built using the make.sh script in the /build directory of this repo. Simply check out the repo, cd into the build folder and run bash make.sh --help to get a full list of the options available for the build process. bash make.sh build will be the most common (with bash make.sh build debug available for quick testing - it skips the minification steps for speed).

A number of programs are required out your computer to be able to build DataTables:

  • Bash
  • PHP 5.4+
  • Node.js 12+
  • Sass - CSS compiler
  • JSHint 2.1+ - Linter (optional)

The build script assumes that a Mac or Linux environment is being used - Windows builds are not currently directly supported (although would be possible using Cygwin). Additionally, you may need to alter the paths for the above programs to reflect where they are installed on your own computer - this can be done in the build/include.sh script.

The output files are placed into built/DataTables/ which is a temporary directory. No changes should be made in that directory as they will be overwritten when you next build the software.

To run locally, do the following

git clone https://github.com/DataTables/DataTablesSrc
cd DataTablesSrc
cd build
./make.sh examples
./make.sh build
cd ../built/examples
php -S localhost:8300

and now open http://localhost:8300/examples/

Documentation

Full documentation of the DataTables options, API and plug-in interface are available on the DataTables web-site. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.

Support

Support for DataTables is available through the DataTables forums and commercial support options are available.

License

DataTables is release under the MIT license. You are free to use, modify and distribute this software, but all copyright information must remain.

More Repositories

1

DataTables

Tables plug-in for jQuery
CSS
7,199
star
2

Plugins

Plug-ins for DataTables
JavaScript
1,043
star
3

VisualEvent

Visually show Javascript events on a page
JavaScript
1,017
star
4

TableTools

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.
JavaScript
237
star
5

Responsive

Responsive extension for DataTables, providing support for complex tables on all device screen sizes
JavaScript
148
star
6

Buttons

Buttons is an extension for DataTables that adds control buttons to the table.
JavaScript
138
star
7

Scroller

Virtual scrolling plug-in for DataTables
JavaScript
82
star
8

FixedHeader

Fix the header, footer, left or right columns of a table in place, to always show them when scrolling
JavaScript
75
star
9

FixedColumns

Fix one or more columns in place on a scrolling DataTable
JavaScript
62
star
10

ColReorder

Column reordering plug-in for DataTables
TypeScript
57
star
11

Dist-DataTables

JavaScript
47
star
12

Select

Set of selection API methods and buttons for the DataTables library
JavaScript
44
star
13

KeyTable

Provides spreadsheet like navigation and event control for DataTables
JavaScript
36
star
14

ColVis

End user column visibility options plug-in for DataTables
JavaScript
36
star
15

Vue

Vue plugin for DataTables
Vue
35
star
16

Editor-PHP

PHP server-side libraries for Editor
PHP
35
star
17

RowGroup

RowGrouping extension for DataTables
JavaScript
30
star
18

AutoFill

Excel like auto fill interaction controller for DataTables
JavaScript
30
star
19

Dist-DataTables-Bootstrap4

CSS
27
star
20

SearchBuilder

SearchBuilder extension for DataTables
TypeScript
23
star
21

RowReorder

Row reordering extensions for DataTables
JavaScript
22
star
22

SearchPanes

SearchPanes extension for DataTables
JavaScript
19
star
23

Editor-NET

.NET Framework and .NET Core server-side libraries for Editor
C#
15
star
24

Dist-DataTables-DataTables

CSS
15
star
25

Dist-DataTables-Bootstrap

CSS
15
star
26

JSDoc-DataTables

JSDoc3 template for documenting DataTables and its components
JavaScript
12
star
27

Dist-DataTables-SemanticUI

CSS
10
star
28

Dist-DataTables-Buttons

JavaScript
10
star
29

DateTime

Data / time picker used for DataTables.net components
JavaScript
10
star
30

Dist-DataTables-Bootstrap5

CSS
10
star
31

Editor-Node

NodeJS server-side libraries for Editor
TypeScript
9
star
32

Dist-DataTables-Responsive

JavaScript
7
star
33

DataTables-Debug-Client

Client-side debugger for DataTables
TypeScript
6
star
34

CDN-Server

DataTables CDN server
TypeScript
6
star
35

Dist-DataTables-Select

JavaScript
6
star
36

Dist-DataTables-FixedHeader

JavaScript
5
star
37

Dist-DataTables-RowGroup

JavaScript
4
star
38

Dist-DataTables-RowReorder

JavaScript
4
star
39

Dist-DataTables-ColReorder

JavaScript
3
star
40

Dist-DataTables-Responsive-Bootstrap4

CSS
3
star
41

Dist-DataTables-FixedColumns

JavaScript
3
star
42

Dist-DataTables-Scroller

JavaScript
3
star
43

Dist-DataTables-FixedColumns-Bootstrap

CSS
3
star
44

Dist-DataTables-FixedHeader-Bootstrap4

JavaScript
3
star
45

Dist-DataTables-KeyTable

JavaScript
3
star
46

Dist-DataTables-SearchPanes-Bootstrap4

CSS
3
star
47

Dist-DataTables-SearchPanes

JavaScript
3
star
48

Dist-Editor

DataTables Editor - holding package
JavaScript
3
star
49

Dist-DataTables-Select-jQueryUI

CSS
3
star
50

Dist-DataTables-KeyTable-jQueryUI

JavaScript
2
star
51

StateRestore

StateRestore extension for Datatables
JavaScript
2
star
52

Dist-DataTables-AutoFill

JavaScript
2
star
53

Dist-DataTables-Buttons-Bootstrap

CSS
2
star
54

Dist-DataTables-ColReorder-Bootstrap

JavaScript
2
star
55

Dist-DataTables-RowReorder-jQueryUI

JavaScript
2
star
56

Dist-DataTables-SearchBuilder

JavaScript
2
star
57

Dist-DataTables-Buttons-jQueryUI

CSS
2
star
58

Dist-DataTables-AutoFill-Bootstrap

CSS
2
star
59

Dist-DataTables-FixedHeader-jQueryUI

JavaScript
2
star
60

Dist-DataTables-ColReorder-jQueryUI

JavaScript
2
star
61

Type-Detection

JavaScript
2
star
62

Dist-DataTables-RowReorder-Bootstrap4

JavaScript
2
star
63

Dist-DataTables-AutoFill-SemanticUI

CSS
2
star
64

Dist-DataTables-Buttons-Bootstrap5

JavaScript
2
star
65

Dist-DataTables-Buttons-Bootstrap4

CSS
2
star
66

Dist-DataTables-RowReorder-Bootstrap

JavaScript
2
star
67

Dist-DataTables-RowReorder-SemanticUI

JavaScript
2
star
68

Dist-DataTables-Select-SemanticUI

CSS
2
star
69

Dist-DataTables-RowGroup-jQueryUI

JavaScript
2
star
70

Dist-DataTables-FixedColumns-DataTables

CSS
2
star
71

Dist-DataTables-SearchPanes-SemanticUI

CSS
1
star
72

Dist-DataTables-Responsive-DataTables

CSS
1
star
73

Dist-DataTables-SearchPanes-jQueryUI

CSS
1
star
74

Dist-DataTables-Responsive-jQueryUI

CSS
1
star
75

Dist-DataTables-FixedColumns-Bootstrap4

CSS
1
star
76

Dist-DataTables-Buttons-SemanticUI

CSS
1
star
77

Dist-DataTables-Foundation

CSS
1
star
78

Dist-DataTables-Responsive-Bootstrap

CSS
1
star
79

Dist-DataTables-RowReorder-DataTables

JavaScript
1
star
80

project-references-demo

TypeScript
1
star
81

Dist-DataTables-SearchPanes-DataTables

CSS
1
star
82

Dist-DataTables-SearchPanes-Foundation

CSS
1
star
83

Dist-DataTables-Select-Bootstrap4

CSS
1
star
84

Dist-DataTables-jQueryUI

CSS
1
star
85

Dist-DataTables-SearchPanes-Bootstrap

CSS
1
star