datatables.net-select-dt 1.3.4 → 1.5.0

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.
@@ -1,71 +1,14 @@
1
- table.dataTable tbody > tr.selected,
2
- table.dataTable tbody > tr > .selected {
3
- background-color: #B0BED9;
1
+ table.dataTable > tbody > tr > .selected {
2
+ background-color: rgba(13, 110, 253, 0.9);
3
+ color: white;
4
4
  }
5
- table.dataTable.stripe tbody > tr.odd.selected,
6
- table.dataTable.stripe tbody > tr.odd > .selected, table.dataTable.display tbody > tr.odd.selected,
7
- table.dataTable.display tbody > tr.odd > .selected {
8
- background-color: #acbad4;
9
- }
10
- table.dataTable.hover tbody > tr.selected:hover,
11
- table.dataTable.hover tbody > tr > .selected:hover, table.dataTable.display tbody > tr.selected:hover,
12
- table.dataTable.display tbody > tr > .selected:hover {
13
- background-color: #aab7d1;
14
- }
15
- table.dataTable.order-column tbody > tr.selected > .sorting_1,
16
- table.dataTable.order-column tbody > tr.selected > .sorting_2,
17
- table.dataTable.order-column tbody > tr.selected > .sorting_3,
18
- table.dataTable.order-column tbody > tr > .selected, table.dataTable.display tbody > tr.selected > .sorting_1,
19
- table.dataTable.display tbody > tr.selected > .sorting_2,
20
- table.dataTable.display tbody > tr.selected > .sorting_3,
21
- table.dataTable.display tbody > tr > .selected {
22
- background-color: #acbad5;
23
- }
24
- table.dataTable.display tbody > tr.odd.selected > .sorting_1, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_1 {
25
- background-color: #a6b4cd;
26
- }
27
- table.dataTable.display tbody > tr.odd.selected > .sorting_2, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_2 {
28
- background-color: #a8b5cf;
29
- }
30
- table.dataTable.display tbody > tr.odd.selected > .sorting_3, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_3 {
31
- background-color: #a9b7d1;
32
- }
33
- table.dataTable.display tbody > tr.even.selected > .sorting_1, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_1 {
34
- background-color: #acbad5;
35
- }
36
- table.dataTable.display tbody > tr.even.selected > .sorting_2, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_2 {
37
- background-color: #aebcd6;
38
- }
39
- table.dataTable.display tbody > tr.even.selected > .sorting_3, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_3 {
40
- background-color: #afbdd8;
41
- }
42
- table.dataTable.display tbody > tr.odd > .selected, table.dataTable.order-column.stripe tbody > tr.odd > .selected {
43
- background-color: #a6b4cd;
44
- }
45
- table.dataTable.display tbody > tr.even > .selected, table.dataTable.order-column.stripe tbody > tr.even > .selected {
46
- background-color: #acbad5;
47
- }
48
- table.dataTable.display tbody > tr.selected:hover > .sorting_1, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_1 {
49
- background-color: #a2aec7;
50
- }
51
- table.dataTable.display tbody > tr.selected:hover > .sorting_2, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_2 {
52
- background-color: #a3b0c9;
53
- }
54
- table.dataTable.display tbody > tr.selected:hover > .sorting_3, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_3 {
55
- background-color: #a5b2cb;
56
- }
57
- table.dataTable.display tbody > tr:hover > .selected,
58
- table.dataTable.display tbody > tr > .selected:hover, table.dataTable.order-column.hover tbody > tr:hover > .selected,
59
- table.dataTable.order-column.hover tbody > tr > .selected:hover {
60
- background-color: #a2aec7;
61
- }
62
- table.dataTable tbody td.select-checkbox,
63
- table.dataTable tbody th.select-checkbox {
5
+ table.dataTable > tbody > tr > td.select-checkbox,
6
+ table.dataTable > tbody > tr > th.select-checkbox {
64
7
  position: relative;
65
8
  }
66
- table.dataTable tbody td.select-checkbox:before, table.dataTable tbody td.select-checkbox:after,
67
- table.dataTable tbody th.select-checkbox:before,
68
- table.dataTable tbody th.select-checkbox:after {
9
+ table.dataTable > tbody > tr > td.select-checkbox:before, table.dataTable > tbody > tr > td.select-checkbox:after,
10
+ table.dataTable > tbody > tr > th.select-checkbox:before,
11
+ table.dataTable > tbody > tr > th.select-checkbox:after {
69
12
  display: block;
70
13
  position: absolute;
71
14
  top: 1.2em;
@@ -74,16 +17,20 @@ table.dataTable tbody th.select-checkbox:after {
74
17
  height: 12px;
75
18
  box-sizing: border-box;
76
19
  }
77
- table.dataTable tbody td.select-checkbox:before,
78
- table.dataTable tbody th.select-checkbox:before {
20
+ table.dataTable > tbody > tr > td.select-checkbox:before,
21
+ table.dataTable > tbody > tr > th.select-checkbox:before {
79
22
  content: " ";
80
23
  margin-top: -6px;
81
24
  margin-left: -6px;
82
25
  border: 1px solid black;
83
26
  border-radius: 3px;
84
27
  }
85
- table.dataTable tr.selected td.select-checkbox:after,
86
- table.dataTable tr.selected th.select-checkbox:after {
28
+ table.dataTable > tbody > tr.selected > td.select-checkbox:before,
29
+ table.dataTable > tbody > tr.selected > th.select-checkbox:before {
30
+ border: 1px solid white;
31
+ }
32
+ table.dataTable > tbody > tr.selected > td.select-checkbox:after,
33
+ table.dataTable > tbody > tr.selected > th.select-checkbox:after {
87
34
  content: "✓";
88
35
  font-size: 20px;
89
36
  margin-top: -19px;
@@ -91,12 +38,12 @@ table.dataTable tr.selected th.select-checkbox:after {
91
38
  text-align: center;
92
39
  text-shadow: 1px 1px #B0BED9, -1px -1px #B0BED9, 1px -1px #B0BED9, -1px 1px #B0BED9;
93
40
  }
94
- table.dataTable.compact tbody td.select-checkbox:before,
95
- table.dataTable.compact tbody th.select-checkbox:before {
41
+ table.dataTable.compact > tbody > tr > td.select-checkbox:before,
42
+ table.dataTable.compact > tbody > tr > th.select-checkbox:before {
96
43
  margin-top: -12px;
97
44
  }
98
- table.dataTable.compact tr.selected td.select-checkbox:after,
99
- table.dataTable.compact tr.selected th.select-checkbox:after {
45
+ table.dataTable.compact > tbody > tr.selected > td.select-checkbox:after,
46
+ table.dataTable.compact > tbody > tr.selected > th.select-checkbox:after {
100
47
  margin-top: -16px;
101
48
  }
102
49
 
@@ -1 +1 @@
1
- table.dataTable tbody>tr.selected,table.dataTable tbody>tr>.selected{background-color:#b0bed9}table.dataTable.stripe tbody>tr.odd.selected,table.dataTable.stripe tbody>tr.odd>.selected,table.dataTable.display tbody>tr.odd.selected,table.dataTable.display tbody>tr.odd>.selected{background-color:#acbad4}table.dataTable.hover tbody>tr.selected:hover,table.dataTable.hover tbody>tr>.selected:hover,table.dataTable.display tbody>tr.selected:hover,table.dataTable.display tbody>tr>.selected:hover{background-color:#aab7d1}table.dataTable.order-column tbody>tr.selected>.sorting_1,table.dataTable.order-column tbody>tr.selected>.sorting_2,table.dataTable.order-column tbody>tr.selected>.sorting_3,table.dataTable.order-column tbody>tr>.selected,table.dataTable.display tbody>tr.selected>.sorting_1,table.dataTable.display tbody>tr.selected>.sorting_2,table.dataTable.display tbody>tr.selected>.sorting_3,table.dataTable.display tbody>tr>.selected{background-color:#acbad5}table.dataTable.display tbody>tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody>tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody>tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody>tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody>tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody>tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody>tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody>tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody>tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody>tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody>tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody>tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody>tr.odd>.selected,table.dataTable.order-column.stripe tbody>tr.odd>.selected{background-color:#a6b4cd}table.dataTable.display tbody>tr.even>.selected,table.dataTable.order-column.stripe tbody>tr.even>.selected{background-color:#acbad5}table.dataTable.display tbody>tr.selected:hover>.sorting_1,table.dataTable.order-column.hover tbody>tr.selected:hover>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody>tr.selected:hover>.sorting_2,table.dataTable.order-column.hover tbody>tr.selected:hover>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody>tr.selected:hover>.sorting_3,table.dataTable.order-column.hover tbody>tr.selected:hover>.sorting_3{background-color:#a5b2cb}table.dataTable.display tbody>tr:hover>.selected,table.dataTable.display tbody>tr>.selected:hover,table.dataTable.order-column.hover tbody>tr:hover>.selected,table.dataTable.order-column.hover tbody>tr>.selected:hover{background-color:#a2aec7}table.dataTable tbody td.select-checkbox,table.dataTable tbody th.select-checkbox{position:relative}table.dataTable tbody td.select-checkbox:before,table.dataTable tbody td.select-checkbox:after,table.dataTable tbody th.select-checkbox:before,table.dataTable tbody th.select-checkbox:after{display:block;position:absolute;top:1.2em;left:50%;width:12px;height:12px;box-sizing:border-box}table.dataTable tbody td.select-checkbox:before,table.dataTable tbody th.select-checkbox:before{content:" ";margin-top:-6px;margin-left:-6px;border:1px solid black;border-radius:3px}table.dataTable tr.selected td.select-checkbox:after,table.dataTable tr.selected th.select-checkbox:after{content:"✓";font-size:20px;margin-top:-19px;margin-left:-6px;text-align:center;text-shadow:1px 1px #b0bed9,-1px -1px #b0bed9,1px -1px #b0bed9,-1px 1px #b0bed9}table.dataTable.compact tbody td.select-checkbox:before,table.dataTable.compact tbody th.select-checkbox:before{margin-top:-12px}table.dataTable.compact tr.selected td.select-checkbox:after,table.dataTable.compact tr.selected th.select-checkbox:after{margin-top:-16px}div.dataTables_wrapper span.select-info,div.dataTables_wrapper span.select-item{margin-left:.5em}@media screen and (max-width: 640px){div.dataTables_wrapper span.select-info,div.dataTables_wrapper span.select-item{margin-left:0;display:block}}
1
+ table.dataTable>tbody>tr>.selected{background-color:rgba(13, 110, 253, 0.9);color:white}table.dataTable>tbody>tr>td.select-checkbox,table.dataTable>tbody>tr>th.select-checkbox{position:relative}table.dataTable>tbody>tr>td.select-checkbox:before,table.dataTable>tbody>tr>td.select-checkbox:after,table.dataTable>tbody>tr>th.select-checkbox:before,table.dataTable>tbody>tr>th.select-checkbox:after{display:block;position:absolute;top:1.2em;left:50%;width:12px;height:12px;box-sizing:border-box}table.dataTable>tbody>tr>td.select-checkbox:before,table.dataTable>tbody>tr>th.select-checkbox:before{content:" ";margin-top:-6px;margin-left:-6px;border:1px solid black;border-radius:3px}table.dataTable>tbody>tr.selected>td.select-checkbox:before,table.dataTable>tbody>tr.selected>th.select-checkbox:before{border:1px solid white}table.dataTable>tbody>tr.selected>td.select-checkbox:after,table.dataTable>tbody>tr.selected>th.select-checkbox:after{content:"✓";font-size:20px;margin-top:-19px;margin-left:-6px;text-align:center;text-shadow:1px 1px #b0bed9,-1px -1px #b0bed9,1px -1px #b0bed9,-1px 1px #b0bed9}table.dataTable.compact>tbody>tr>td.select-checkbox:before,table.dataTable.compact>tbody>tr>th.select-checkbox:before{margin-top:-12px}table.dataTable.compact>tbody>tr.selected>td.select-checkbox:after,table.dataTable.compact>tbody>tr.selected>th.select-checkbox:after{margin-top:-16px}div.dataTables_wrapper span.select-info,div.dataTables_wrapper span.select-item{margin-left:.5em}@media screen and (max-width: 640px){div.dataTables_wrapper span.select-info,div.dataTables_wrapper span.select-item{margin-left:0;display:block}}
@@ -1,5 +1,5 @@
1
1
  /*! DataTables styling wrapper for Select
2
- * ©2018 SpryMedia Ltd - datatables.net/license
2
+ * © SpryMedia Ltd - datatables.net/license
3
3
  */
4
4
 
5
5
  (function( factory ){
@@ -13,17 +13,26 @@
13
13
  // CommonJS
14
14
  module.exports = function (root, $) {
15
15
  if ( ! root ) {
16
+ // CommonJS environments without a window global must pass a
17
+ // root. This will give an error otherwise
16
18
  root = window;
17
19
  }
18
20
 
19
- if ( ! $ || ! $.fn.dataTable ) {
20
- $ = require('datatables.net-dt')(root, $).$;
21
+ if ( ! $ ) {
22
+ $ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
23
+ require('jquery') :
24
+ require('jquery')( root );
21
25
  }
22
26
 
23
- if ( ! $.fn.dataTable.select ) {
27
+ if ( ! $.fn.dataTable ) {
28
+ require('datatables.net-dt')(root, $);
29
+ }
30
+
31
+ if ( ! $.fn.dataTable ) {
24
32
  require('datatables.net-select')(root, $);
25
33
  }
26
34
 
35
+
27
36
  return factory( $, root, root.document );
28
37
  };
29
38
  }
@@ -32,7 +41,11 @@
32
41
  factory( jQuery, window, document );
33
42
  }
34
43
  }(function( $, window, document, undefined ) {
44
+ 'use strict';
45
+ var DataTable = $.fn.dataTable;
46
+
47
+
35
48
 
36
- return $.fn.dataTable;
37
49
 
38
- }));
50
+ return DataTable;
51
+ }));
@@ -1,5 +1,4 @@
1
- /*!
2
- DataTables styling wrapper for Select
3
- ©2018 SpryMedia Ltd - datatables.net/license
4
- */
5
- (function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-select"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);b&&b.fn.dataTable||(b=require("datatables.net-dt")(a,b).$);b.fn.dataTable.select||require("datatables.net-select")(a,b);return c(b,a,a.document)}:c(jQuery,window,document)})(function(c,a,b,d){return c.fn.dataTable});
1
+ /*! DataTables styling wrapper for Select
2
+ * © SpryMedia Ltd - datatables.net/license
3
+ */
4
+ !function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-select"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,(t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable||require("datatables.net-select")(e,t),n(t,0,e.document)}:n(jQuery,window,document)}(function(e,t,n,d){"use strict";return e.fn.dataTable});
@@ -0,0 +1,4 @@
1
+ /*! DataTables styling wrapper for Select
2
+ * © SpryMedia Ltd - datatables.net/license
3
+ */
4
+ import $ from"jquery";import DataTable from"datatables.net-dt";import"datatables.net-select";export default DataTable;
@@ -0,0 +1,12 @@
1
+ /*! DataTables styling wrapper for Select
2
+ * © SpryMedia Ltd - datatables.net/license
3
+ */
4
+
5
+ import $ from 'jquery';
6
+ import DataTable from 'datatables.net-dt';
7
+ import 'datatables.net-select';
8
+
9
+
10
+
11
+
12
+ export default DataTable;
package/package.json CHANGED
@@ -2,12 +2,14 @@
2
2
  "name": "datatables.net-select-dt",
3
3
  "description": "Select for DataTables with styling for [DataTables](https://datatables.net/)",
4
4
  "main": "js/select.dataTables.js",
5
+ "module": "js/select.dataTables.mjs",
5
6
  "style": "css/select.dataTables.css",
6
- "types": "./types/select.dataTables.d.ts",
7
- "version": "1.3.4",
7
+ "types": "./types/types.d.ts",
8
+ "version": "1.5.0",
8
9
  "files": [
9
10
  "css/**/*.css",
10
11
  "js/**/*.js",
12
+ "js/**/*.mjs",
11
13
  "types/**/*.d.ts"
12
14
  ],
13
15
  "keywords": [
@@ -20,8 +22,8 @@
20
22
  "sort"
21
23
  ],
22
24
  "dependencies": {
23
- "datatables.net-select": ">=1.3.3",
24
- "datatables.net-dt": ">=1.11.3",
25
+ "datatables.net-select": ">=1.4.0",
26
+ "datatables.net-dt": ">=1.12.1",
25
27
  "jquery": ">=1.7"
26
28
  },
27
29
  "moduleType": [
@@ -0,0 +1,224 @@
1
+ // Type definitions for DataTables Select
2
+ //
3
+ // Project: https://datatables.net/extensions/select/, https://datatables.net
4
+ // Definitions by:
5
+ // SpryMedia
6
+ // Jared Szechy <https://github.com/szechyjs>
7
+
8
+ /// <reference types="jquery" />
9
+
10
+ import DataTables from 'datatables.net';
11
+
12
+ export default DataTables;
13
+
14
+ type StyleType = 'api' | 'single' | 'multi' | 'os' | 'multi+shift';
15
+
16
+ declare module 'datatables.net' {
17
+ interface Config {
18
+ /*
19
+ * Select extension options
20
+ */
21
+ select?: boolean | string | ConfigSelect;
22
+ }
23
+
24
+ interface Api<T> {
25
+ select: ApiSelect<Api<T>>
26
+ }
27
+
28
+ interface ApiRowMethods<T> {
29
+ /**
30
+ * Select a row
31
+ */
32
+ select(): Api<T>;
33
+
34
+ /**
35
+ * Deselect a row
36
+ */
37
+ deselect(): Api<T>;
38
+ }
39
+
40
+ interface ApiRowsMethods<T> {
41
+ /**
42
+ * Select multiple rows
43
+ */
44
+ select(): Api<T>;
45
+
46
+ /**
47
+ * Deselect a row
48
+ */
49
+ deselect(): Api<T>;
50
+ }
51
+
52
+ interface ApiCellMethods<T> {
53
+ /**
54
+ * Select cell
55
+ */
56
+ select(): Api<T>;
57
+
58
+ /**
59
+ * Deselect a cell
60
+ */
61
+ deselect(): Api<T>;
62
+ }
63
+
64
+ interface ApiCellsMethods<T> {
65
+ /**
66
+ * Select multiple cells
67
+ */
68
+ select(): Api<T>;
69
+
70
+ /**
71
+ * Deselect cells
72
+ */
73
+ deselect(): Api<T>;
74
+ }
75
+
76
+ interface ApiStatic {
77
+ /**
78
+ * Select static methods
79
+ */
80
+ select: {
81
+ /**
82
+ * Initialise Select (for use on tables which were not in the document
83
+ * when they were initialised).
84
+ */
85
+ init: <T=any>(api: Api<T>) => void;
86
+
87
+ /**
88
+ * Select version
89
+ */
90
+ version: string;
91
+ }
92
+ }
93
+ }
94
+
95
+ interface ConfigSelect {
96
+ /**
97
+ * Indicate if the selected items will be removed when clicking outside of the table
98
+ */
99
+ blurable?: boolean;
100
+
101
+ /**
102
+ * Set the class name that will be applied to selected items
103
+ */
104
+ className?: string;
105
+
106
+ /**
107
+ * Enable / disable the display for item selection information in the table summary
108
+ */
109
+ info?: boolean;
110
+
111
+ /**
112
+ * Set which table items to select (rows, columns or cells)
113
+ */
114
+ items?: string;
115
+
116
+ /**
117
+ * Set the element selector used for mouse event capture to select items
118
+ */
119
+ selector?: string;
120
+
121
+ /**
122
+ * Set the selection style for end user interaction with the table
123
+ */
124
+ style?: StyleType;
125
+ }
126
+
127
+ interface ApiSelect<Api> {
128
+ /**
129
+ * Initialise Select for a DataTable after the DataTable has been constructed.
130
+ *
131
+ * @returns DataTables Api instance
132
+ */
133
+ (): Api;
134
+
135
+ /**
136
+ * Get the blurable state for the table.
137
+ *
138
+ * @returns Current state - true if blurable, false otherwise. Note that if multiple tables are defined in the API's context, only the blurable state of the first table will be returned.
139
+ */
140
+ blurable(): boolean;
141
+
142
+ /**
143
+ * Set the blurable state for the table's selection options.
144
+ *
145
+ * @param flag Value to set for the blurable option - true to enable, false to disable.
146
+ * @returns DataTables Api instance for chaining
147
+ */
148
+ blurable(flag): Api;
149
+
150
+ /**
151
+ * Get the summary information display state for the table.
152
+ *
153
+ * @returns Current state - true if information summary shown, false otherwise. Note that if multiple tables are defined in the API's context, only the information state of the first table will be returned.
154
+ */
155
+ info(): boolean;
156
+
157
+ /**
158
+ * Set the information summary display state for the table's selection options.
159
+ *
160
+ * @param flag Value to set for the information summary display state - true to enable, false to disable.
161
+ * @returns DataTables API instance for chaining.
162
+ */
163
+ info(flag): Api;
164
+
165
+ /**
166
+ * Get the items that will be selected by user interaction (i.e. a click on the table).
167
+ *
168
+ * @returns The current item that will be selected when the user interacts with Select's event listeners - this will be the value row, column or cell.
169
+ */
170
+ items(): string;
171
+
172
+ /**
173
+ * Set the item type that will be selected by user interaction.
174
+ *
175
+ * @param set Items to select - this must be one of row, column or cells.
176
+ * @returns DataTables API instance for chaining.
177
+ */
178
+ items(set: string): Api;
179
+
180
+ /**
181
+ * Get the current item selector string applied to the table.
182
+ *
183
+ * @returns the item selector string being used for the table.
184
+ */
185
+ selector(): string;
186
+
187
+ /**
188
+ * Set the table's item selector string. Note that any old selectors will be automatically removed if this is used as a selector to ensure that there are no memory leaks in unattached event listeners.
189
+ *
190
+ * @param set jQuery selector that will select the cells that can trigger item selection.
191
+ */
192
+ selector(set: string): Api;
193
+
194
+ /**
195
+ * Get the current selection style applied to the table
196
+ *
197
+ * @returns The current selection style, this will be one of "api", "single", "multi" or "os".
198
+ */
199
+ style(): string;
200
+
201
+ /**
202
+ * Set the table's selection style
203
+ *
204
+ * @param s Selection style to set - this must be one of "api", "single", "multi" or "os".
205
+ * @returns DataTables API instance for chaining.
206
+ */
207
+ style(s: StyleType): Api;
208
+
209
+ /**
210
+ * Get the toggle state of Select for the given DataTable.
211
+ *
212
+ * @returns true if the item can be deselected when clicked on, false if it cannot be.
213
+ */
214
+ toggleable(): boolean;
215
+
216
+ /**
217
+ * Set the toggle state of Select for the DataTable.
218
+ *
219
+ * @param set true to allow item deselection, false to disallow.
220
+ * @returns DataTables API instance for chaining.
221
+ */
222
+ toggleable(set): Api;
223
+ }
224
+