datatables.net-select-dt 2.1.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +11 -16
- package/js/select.dataTables.min.js +1 -1
- package/package.json +2 -2
package/Readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Select for DataTables with styling for [DataTables](https://datatables.net/)
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This is the distribution package for the [Select extension](https://datatables.net/extensions/select) for [DataTables](https://datatables.net/) with styling for [DataTables](https://datatables.net/).
|
|
4
4
|
|
|
5
5
|
Select provides table item selection capabilities - rows, columns and cells can be selected individually or collectively. Complex selection operations such as operating system style selection (ctrl/cmd and shift click) for multiple rows can be enabled with a single option for a DataTable.
|
|
6
6
|
|
|
@@ -9,43 +9,38 @@ Select provides table item selection capabilities - rows, columns and cells can
|
|
|
9
9
|
|
|
10
10
|
### Browser
|
|
11
11
|
|
|
12
|
-
|
|
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
|
```
|
|
19
|
+
npm install datatables.net-dt
|
|
17
20
|
npm install datatables.net-select-dt
|
|
18
21
|
```
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
var $ = require( 'jquery' );
|
|
23
|
-
var dt = require( 'datatables.net-select-dt' )( window, $ );
|
|
24
|
-
```
|
|
23
|
+
Then, to load and initialise the software in your code use:
|
|
25
24
|
|
|
26
|
-
ES6 Syntax
|
|
27
25
|
```
|
|
26
|
+
import DataTable from 'datatables.net-dt';
|
|
28
27
|
import 'datatables.net-select-dt'
|
|
29
|
-
```
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
bower install --save datatables.net-select-dt
|
|
29
|
+
new DataTable('#myTable', {
|
|
30
|
+
// initialisation options
|
|
31
|
+
});
|
|
35
32
|
```
|
|
36
33
|
|
|
37
34
|
|
|
38
|
-
|
|
39
35
|
## Documentation
|
|
40
36
|
|
|
41
|
-
Full documentation and examples for Select can be found [on the website](https://datatables.net/extensions/select).
|
|
37
|
+
Full documentation and examples for Select can be found [on the DataTables website](https://datatables.net/extensions/select).
|
|
42
38
|
|
|
43
39
|
|
|
44
40
|
## Bug / Support
|
|
45
41
|
|
|
46
42
|
Support for DataTables is available through the [DataTables forums](//datatables.net/forums) and [commercial support options](//datatables.net/support) are available.
|
|
47
43
|
|
|
48
|
-
|
|
49
44
|
### Contributing
|
|
50
45
|
|
|
51
46
|
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/Select](http://github.com/DataTables/Select). For issues / bugs, please direct your questions to the [DataTables forums](//datatables.net/forums).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! DataTables styling wrapper for Select
|
|
2
2
|
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
(n=>{var d,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-select"],function(e){return n(e,window,document)}):"object"==typeof exports?(d=require("jquery"),o=function(e,t){t.fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable.select||require("datatables.net-select")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||d(e),o(e,t),n(t,0,e.document)}:(o(window,d),module.exports=n(d,window,window.document))):n(jQuery,window,document)})(function(e,t,n){return e.fn.dataTable});
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"module": "js/select.dataTables.mjs",
|
|
6
6
|
"style": "css/select.dataTables.css",
|
|
7
7
|
"types": "./types/select.dataTables.d.ts",
|
|
8
|
-
"version": "
|
|
8
|
+
"version": "3.0.1",
|
|
9
9
|
"files": [
|
|
10
10
|
"css/**/*.css",
|
|
11
11
|
"js/**/*.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"sort"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"datatables.net-select": "
|
|
25
|
+
"datatables.net-select": "3.0.1",
|
|
26
26
|
"datatables.net-dt": "^2",
|
|
27
27
|
"jquery": ">=1.7"
|
|
28
28
|
},
|