jquery.dgtable 0.5.47 → 0.5.51
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 +2 -1
- package/dist/jquery.dgtable.cjs.js +502 -230
- package/dist/jquery.dgtable.cjs.js.map +1 -1
- package/dist/jquery.dgtable.cjs.min.js +2 -2
- package/dist/jquery.dgtable.cjs.min.js.map +1 -1
- package/dist/jquery.dgtable.es6.js +501 -229
- package/dist/jquery.dgtable.es6.js.map +1 -1
- package/dist/jquery.dgtable.es6.min.js +2 -2
- package/dist/jquery.dgtable.es6.min.js.map +1 -1
- package/dist/jquery.dgtable.umd.js +2382 -1862
- package/dist/jquery.dgtable.umd.js.map +1 -1
- package/dist/jquery.dgtable.umd.min.js +2 -2
- package/dist/jquery.dgtable.umd.min.js.map +1 -1
- package/package.json +12 -11
- package/src/index.js +31 -27
- package/src/row_collection.js +6 -5
package/README.md
CHANGED
|
@@ -92,7 +92,7 @@ To create a new table, just use `var myTable = new DGTable(INIT_OPTIONS)`.
|
|
|
92
92
|
* **rowsBufferSize**: `Number=10` The size of the rows buffer, for virtual table
|
|
93
93
|
* **minColumnWidth**: `Number=35` In pixels, the minimum width for a column
|
|
94
94
|
* **resizeAreaWidth**: `Number=8` The size of the area where you can drag to resize.
|
|
95
|
-
* **onComparatorRequired**: `
|
|
95
|
+
* **onComparatorRequired**: `function(columnName: string, descending: boolean, defaultComparator: function(a,b):boolean):{function(a,b):boolean}` A callback that can pass a comparator function for each column and mode as required.
|
|
96
96
|
* **resizerClassName**: `String='dgtable-resize'` Class name for the dragged resizing element (showing when resizing a column)
|
|
97
97
|
* **tableClassName**: `String='dgtable'` Class name for the table
|
|
98
98
|
* **allowCellPreview**: `Boolean=true` When set, hovering on truncated cells will show a preview of the full content.
|
|
@@ -155,6 +155,7 @@ To create a new table, just use `var myTable = new DGTable(INIT_OPTIONS)`.
|
|
|
155
155
|
* `filterclear`: A filter was cleared
|
|
156
156
|
* `sort`: The data was sorted
|
|
157
157
|
* 1st argument: Array of sort constructs `[{ "column": "column's name", "descending": true/false }, ...]`
|
|
158
|
+
* 2nd argument: Boolean that determines whether this is a direct sort or indirect (sort() vs resort(), addRows(), etc.). If `false`, this is an indirect sort.
|
|
158
159
|
* `headercontextmenu`: A context menu should be shown for a header cell
|
|
159
160
|
* 1st argument: The column's name
|
|
160
161
|
* 2nd argument: pageX of the pointer event
|