Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 68e7920

Browse files
committed
Deprecate ColVis & TableTools #428
1 parent 644dede commit 68e7920

9 files changed

+24
-6
lines changed

demo/usages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ angular.module('showcase.usages', ['ngResource'])
6868
label: 'With ColReorder'
6969
}, {
7070
name: 'withColVis',
71-
label: 'With ColVis'
71+
label: 'With ColVis [deprecated]'
7272
}, {
7373
name: 'withTableTools',
74-
label: 'With TableTools'
74+
label: 'With TableTools [deprecated]'
7575
}, {
7676
name: 'withResponsive',
7777
label: 'With Responsive'

demo/withPlugins/withColVis.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<article class="main-content">
22
<header class="article-header">
3-
<h1><i class="fa fa-play"></i>&nbsp;With the DataTables <a href="https://datatables.net/extensions/colvis/">ColVis</a></h1>
3+
<h1>
4+
<i class="fa fa-play"></i>&nbsp;With the DataTables <a href="https://datatables.net/extensions/colvis/">ColVis</a>
5+
<b>[deprecated]</b>
6+
</h1>
47
</header>
58
<section class="article-content">
69
<p>
@@ -15,6 +18,10 @@ <h1><i class="fa fa-play"></i>&nbsp;With the DataTables <a href="https://datatab
1518
<p>
1619
See the <a ui-sref="api">API</a> for the complete list of methods of the helper.
1720
</p>
21+
<p class="alert alert-danger">
22+
<i class="fa fa-warning"></i>&nbsp;This extension has been retired and has been replaced by the
23+
<a href="https://datatables.net/extensions/buttons/">Button extension</a>.
24+
</p>
1825
</section>
1926
<section class="showcase">
2027
<tabset>

demo/withPlugins/withTableTools.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<article class="main-content">
22
<header class="article-header">
3-
<h1><i class="fa fa-play"></i>&nbsp;With the DataTables <a href="https://datatables.net/extensions/tabletools/">TableTools</a></h1>
3+
<h1>
4+
<i class="fa fa-play"></i>&nbsp;With the DataTables <a href="https://datatables.net/extensions/tabletools/">TableTools</a>
5+
<b>[deprecated]</b>
6+
</h1>
47
</header>
58
<section class="article-content">
69
<p>
@@ -15,6 +18,10 @@ <h1><i class="fa fa-play"></i>&nbsp;With the DataTables <a href="https://datatab
1518
<p>
1619
See the <a ui-sref="api">API</a> for the complete list of methods of the helper.
1720
</p>
21+
<p class="alert alert-danger">
22+
<i class="fa fa-warning"></i>&nbsp;This extension has been retired and has been replaced by the
23+
<a href="https://datatables.net/extensions/select/">Select extension</a> and the <a href="https://datatables.net/extensions/buttons/">Button extension</a>.
24+
</p>
1825
</section>
1926
<section class="showcase">
2027
<tabset>

dist/plugins/colvis/angular-datatables.colvis.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function dtColVisConfig($provide, DT_DEFAULT_OPTIONS) {
4444
* @returns {DTOptions} the options
4545
*/
4646
function withColVis() {
47+
console.warn('The colvis extension has been retired. Please use the button extension instead: https://datatables.net/extensions/buttons/');
4748
var colVisPrefix = 'C';
4849
options.dom = options.dom ? options.dom : DT_DEFAULT_OPTIONS.dom;
4950
if (options.dom.indexOf(colVisPrefix) === -1) {

dist/plugins/colvis/angular-datatables.colvis.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plugins/tabletools/angular-datatables.tabletools.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function dtTableToolsConfig($provide, DT_DEFAULT_OPTIONS) {
4545
* @returns {DTOptions} the options
4646
*/
4747
function withTableTools(sSwfPath) {
48+
console.warn('The tabletools extension has been retired. Please use the select and buttons extensions instead: https://datatables.net/extensions/select/ and https://datatables.net/extensions/buttons/');
4849
var tableToolsPrefix = 'T';
4950
options.dom = options.dom ? options.dom : DT_DEFAULT_OPTIONS.dom;
5051
if (options.dom.indexOf(tableToolsPrefix) === -1) {

dist/plugins/tabletools/angular-datatables.tabletools.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugins/colvis/angular-datatables.colvis.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function dtColVisConfig($provide, DT_DEFAULT_OPTIONS) {
3737
* @returns {DTOptions} the options
3838
*/
3939
function withColVis() {
40+
console.warn('The colvis extension has been retired. Please use the button extension instead: https://datatables.net/extensions/buttons/');
4041
var colVisPrefix = 'C';
4142
options.dom = options.dom ? options.dom : DT_DEFAULT_OPTIONS.dom;
4243
if (options.dom.indexOf(colVisPrefix) === -1) {

src/plugins/tabletools/angular-datatables.tabletools.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function dtTableToolsConfig($provide, DT_DEFAULT_OPTIONS) {
3838
* @returns {DTOptions} the options
3939
*/
4040
function withTableTools(sSwfPath) {
41+
console.warn('The tabletools extension has been retired. Please use the select and buttons extensions instead: https://datatables.net/extensions/select/ and https://datatables.net/extensions/buttons/');
4142
var tableToolsPrefix = 'T';
4243
options.dom = options.dom ? options.dom : DT_DEFAULT_OPTIONS.dom;
4344
if (options.dom.indexOf(tableToolsPrefix) === -1) {

0 commit comments

Comments
 (0)