You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+17-14Lines changed: 17 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# DataTables for jQuery with styling for [jQueryUI](http://jqueryui.com/)
1
+
# DataTables with [jQueryUI](http://jqueryui.com/) styling
2
2
3
-
This package contains distribution files required to style [DataTables library](https://datatables.net)for [jQuery](http://jquery.com/)with styling for [jQueryUI](http://jqueryui.com/).
3
+
This package contains distribution files required to style [DataTables table enhancement library](https://datatables.net) with styling integration for [jQueryUI](http://jqueryui.com/).
4
4
5
5
DataTables is a table enhancing library which adds features such as paging, ordering, search, scrolling and many more to a static HTML page. A comprehensive API is also available that can be used to manipulate the table. Please refer to the [DataTables web-site](//datatables.net) for a full range of documentation and examples.
6
6
@@ -9,31 +9,35 @@ DataTables is a table enhancing library which adds features such as paging, orde
9
9
10
10
### Browser
11
11
12
-
For inclusion of this library using a standard`<script>` tag, rather than using this package, it is recommended that you use the [DataTables download builder](//datatables.net/download) which can create CDN or locally hosted packages for you, will all dependencies satisfied.
12
+
To use DataTables with a simple`<script>` tag, rather than using this package, it is recommended that you use the [DataTables download builder](//datatables.net/download) which can create CDN or locally hosted packages for you, will all dependencies satisfied.
13
13
14
14
### npm
15
15
16
+
For installation via npm, yarn and other similar package managers, install this package with your package manager - e.g.:
17
+
16
18
```
17
19
npm install datatables.net-jqui
18
20
```
19
21
20
-
ES3 Syntax
21
-
```
22
-
var $ = require( 'jquery' );
23
-
require( 'datatables.net-jqui' )( window, $ );
24
-
```
22
+
Then, to load and initialise DataTables in your code use:
25
23
26
-
ES6 Syntax
27
24
```
28
-
import 'datatables.net-jqui'
25
+
import DataTable from 'datatables.net-jqui';
26
+
27
+
new DataTable('#myTable', {
28
+
// initalisation options
29
+
});
29
30
```
30
31
31
-
### bower
32
+
If you are using an old version of Node or a CommonJS loader, you might need to use the `require` syntax:
32
33
33
34
```
34
-
bower install --save datatables.net-jqui
35
-
```
35
+
const DataTable = require('datatables.net-jqui');
36
36
37
+
new DataTable('#myTable', {
38
+
// initalisation options
39
+
});
40
+
```
37
41
38
42
39
43
## Documentation
@@ -45,7 +49,6 @@ Full documentation of the DataTables options, API and plug-in interface are avai
45
49
46
50
Support for DataTables is available through the [DataTables forums](//datatables.net/forums) and [commercial support options](//datatables.net/support) are available.
47
51
48
-
49
52
### Contributing
50
53
51
54
If you are thinking of contributing code to DataTables, first of all, thank you! All fixes, patches and enhancements to DataTables are very warmly welcomed. This repository is a distribution repo, so patches and issues sent to this repo will not be accepted. Instead, please direct pull requests to the [DataTables/DataTablesSrc](http://github.com/DataTables/DataTablesSrc). For issues / bugs, please direct your questions to the [DataTables forums](//datatables.net/forums).
0 commit comments