datatables.net-colreorder-bs
Advanced tools
Comparing version
@@ -8,3 +8,3 @@ { | ||
"types": "./types/colReorder.bootstrap.d.ts", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"files": [ | ||
@@ -27,3 +27,3 @@ "css/**/*.css", | ||
"dependencies": { | ||
"datatables.net-colreorder": "2.0.4", | ||
"datatables.net-colreorder": "2.1.0", | ||
"datatables.net-bs": "^2", | ||
@@ -30,0 +30,0 @@ "jquery": ">=1.7" |
# ColReorder for DataTables with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/) | ||
This package contains a built distribution of the [ColReorder extension](https://datatables.net/extensions/colreorder) for [DataTables](https://datatables.net/) with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/). | ||
This is the distribution package for the [ColReorder extension](https://datatables.net/extensions/colreorder) for [DataTables](https://datatables.net/) with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/). | ||
@@ -12,32 +12,28 @@ ColReorder allows the end user to modify the column order of a table through drop-and-drag of column headers. | ||
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. | ||
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. | ||
### npm | ||
For installation via npm, yarn and other similar package managers, install this package with your package manager - e.g.: | ||
``` | ||
npm install datatables.net-bs | ||
npm install datatables.net-colreorder-bs | ||
``` | ||
ES3 Syntax | ||
``` | ||
var $ = require( 'jquery' ); | ||
var dt = require( 'datatables.net-colreorder-bs' )( window, $ ); | ||
``` | ||
Then, to load and initialise the software in your code use: | ||
ES6 Syntax | ||
``` | ||
import DataTable from 'datatables.net-bs'; | ||
import 'datatables.net-colreorder-bs' | ||
``` | ||
### bower | ||
new DataTable('#myTable', { | ||
// initialisation options | ||
}); | ||
``` | ||
bower install --save datatables.net-colreorder-bs | ||
``` | ||
## Documentation | ||
Full documentation and examples for ColReorder can be found [on the website](https://datatables.net/extensions/colreorder). | ||
Full documentation and examples for ColReorder can be found [on the DataTables website](https://datatables.net/extensions/colreorder). | ||
@@ -49,3 +45,2 @@ | ||
### Contributing | ||
@@ -52,0 +47,0 @@ |
8271
1.35%53
-8.62%+ Added
- Removed