datatables.net-bm 2.2.0 → 2.2.2
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 +17 -14
- package/css/dataTables.bulma.css +4 -5
- package/package.json +2 -2
package/Readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# DataTables
|
|
1
|
+
# DataTables with [Bulma](https://bulma.io/) styling
|
|
2
2
|
|
|
3
|
-
This package contains distribution files required to style [DataTables library](https://datatables.net)
|
|
3
|
+
This package contains distribution files required to style [DataTables table enhancement library](https://datatables.net) with styling integration for [Bulma](https://bulma.io/).
|
|
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
|
-
|
|
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-bm
|
|
18
20
|
```
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
var $ = require( 'jquery' );
|
|
23
|
-
require( 'datatables.net-bm' )( window, $ );
|
|
24
|
-
```
|
|
22
|
+
Then, to load and initialise DataTables in your code use:
|
|
25
23
|
|
|
26
|
-
ES6 Syntax
|
|
27
24
|
```
|
|
28
|
-
import 'datatables.net-bm'
|
|
25
|
+
import DataTable from 'datatables.net-bm';
|
|
26
|
+
|
|
27
|
+
new DataTable('#myTable', {
|
|
28
|
+
// initalisation options
|
|
29
|
+
});
|
|
29
30
|
```
|
|
30
31
|
|
|
31
|
-
|
|
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
|
-
|
|
35
|
-
```
|
|
35
|
+
const DataTable = require('datatables.net-bm');
|
|
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).
|
package/css/dataTables.bulma.css
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/*! DataTables Bulma integration
|
|
3
2
|
* © SpryMedia Ltd - datatables.net/license
|
|
4
3
|
*/
|
|
@@ -84,8 +83,8 @@ table.dataTable thead > tr > td.dt-ordering-asc span.dt-column-order:before {
|
|
|
84
83
|
position: absolute;
|
|
85
84
|
display: block;
|
|
86
85
|
bottom: 50%;
|
|
87
|
-
content: "
|
|
88
|
-
content: "
|
|
86
|
+
content: "\25B2";
|
|
87
|
+
content: "\25B2"/"";
|
|
89
88
|
}
|
|
90
89
|
table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order:after, table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after,
|
|
91
90
|
table.dataTable thead > tr > td.dt-orderable-desc span.dt-column-order:after,
|
|
@@ -93,8 +92,8 @@ table.dataTable thead > tr > td.dt-ordering-desc span.dt-column-order:after {
|
|
|
93
92
|
position: absolute;
|
|
94
93
|
display: block;
|
|
95
94
|
top: 50%;
|
|
96
|
-
content: "
|
|
97
|
-
content: "
|
|
95
|
+
content: "\25BC";
|
|
96
|
+
content: "\25BC"/"";
|
|
98
97
|
}
|
|
99
98
|
table.dataTable thead > tr > th.dt-orderable-asc, table.dataTable thead > tr > th.dt-orderable-desc, table.dataTable thead > tr > th.dt-ordering-asc, table.dataTable thead > tr > th.dt-ordering-desc,
|
|
100
99
|
table.dataTable thead > tr > td.dt-orderable-asc,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"module": "js/dataTables.bulma.mjs",
|
|
6
6
|
"style": "css/dataTables.bulma.css",
|
|
7
7
|
"types": "./types/dataTables.bulma.d.ts",
|
|
8
|
-
"version": "2.2.
|
|
8
|
+
"version": "2.2.2",
|
|
9
9
|
"files": [
|
|
10
10
|
"css/**/*.css",
|
|
11
11
|
"js/**/*.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"sort"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"datatables.net": "2.2.
|
|
24
|
+
"datatables.net": "2.2.2",
|
|
25
25
|
"jquery": ">=1.7"
|
|
26
26
|
},
|
|
27
27
|
"moduleType": [
|