jquery.dgtable 2.0.36 → 2.0.38

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 CHANGED
@@ -89,10 +89,10 @@ To create a new table, just use `var myTable = new DGTable(INIT_OPTIONS)`.
89
89
  * **adjustColumnWidthForSortArrow**: `boolean=true` When set, the columns will automatically grow to accommodate for the sort arrow.
90
90
  * **relativeWidthGrowsToFillWidth**: `boolean=true` When set, relative width columns automatically grow to fill the table's width.
91
91
  * **relativeWidthShrinksToFillWidth**: `boolean=false` When set, relative width columns automatically shrink to fill the table's width.
92
- * **convertColumnWidthsToRelative**: `boolean=false` When set, auto-width columns are automatically converted to relatives.
93
- * **autoFillTableWidth**: `boolean=false` When set, columns are stretched proportionally to fill the table width (only if there is space left). Will supersede `relativeWidthGrowsToFillWidth` in the future.
94
- * **autoFillLastColumn**: `boolean=true` When set, the last visible column expands to fill leftover table width without changing its configured width.
95
- * **allowCancelSort**: `boolean=true` When set, the sorting arrows will have 3 modes - asc, desc, and cancelled.
92
+ * **convertColumnWidthsToRelative**: `boolean=false` When set, auto-width columns are automatically converted to relatives.
93
+ * **autoFillTableWidth**: `boolean=false` When set, columns are stretched proportionally to fill the table width (only if there is space left). Will supersede `relativeWidthGrowsToFillWidth` in the future.
94
+ * **autoFillLastColumn**: `boolean=true` When set, the last visible column expands to fill leftover table width without changing its configured width.
95
+ * **allowCancelSort**: `boolean=true` When set, the sorting arrows will have 3 modes - asc, desc, and cancelled.
96
96
  * **cellClasses**: `string` Classes to add to the DOM element of all cells
97
97
  * **sortColumn**: `string|string[]|COLUMN_SORT_OPTIONS|COLUMN_SORT_OPTIONS[]` Columns to sort by
98
98
  * Can be a column or an array of columns.
@@ -102,9 +102,9 @@ To create a new table, just use `var myTable = new DGTable(INIT_OPTIONS)`.
102
102
  * **cellFormatter**: `Function(string value, string columnName, Object rowData)string` *(optional)* A formatter function which will return the HTML for the cell. By default the formatter is a plain HTML formatter.
103
103
  * **headerCellFormatter**: `Function(string value, string columnName)string` *(optional)* A formatter function which will return the HTML for the cell's header. By default the formatter is a plain HTML formatter.
104
104
  * **rowsBufferSize**: `number=10` The size of the rows buffer, for virtual table
105
- * **minColumnWidth**: `number=35` In pixels, the minimum width for a column
106
- * **resizeAreaWidth**: `number=8` The size of the area where you can drag to resize.
107
- * **autoFitColumnOnResizeDoubleClick**: `boolean=false` Auto-fit a column when the user double-clicks the resize area.
105
+ * **minColumnWidth**: `number=35` In pixels, the minimum width for a column
106
+ * **resizeAreaWidth**: `number=8` The size of the area where you can drag to resize.
107
+ * **autoFitColumnOnResizeDoubleClick**: `boolean=false` Auto-fit a column when the user double-clicks the resize area.
108
108
  * **onComparatorRequired**: `function(columnName: string, descending: boolean, defaultComparator: function(a,b):number):{function(a,b):number}` A callback that can pass a comparator function for each column and mode as required.
109
109
  * **resizerClassName**: `string='dgtable-resize'` Class name for the dragged resizing element (showing when resizing a column)
110
110
  * **tableClassName**: `string='dgtable'` Class name for the table
@@ -133,10 +133,10 @@ To create a new table, just use `var myTable = new DGTable(INIT_OPTIONS)`.
133
133
  * `addcolumn`: A column was added - `string` (the column's name)
134
134
  * `removecolumn`: A column was removed - `string` (the column's name)
135
135
  * `movecolumn`: A column was moved - `({ name: string, src: number, dest: number })`
136
- * `showcolumn`: A column was shown - `string` (the column's name)
137
- * `hidecolumn`: A column was hidden - `string` (the column's name)
138
- * `columnwidth`: A column was resized - `({ name: string, width: number|string, oldWidth: number|string })`
139
- * `columnresizeareadoubleclick`: A column resize area was double-clicked - `({ name: string, columnName: string, event: Event })`
136
+ * `showcolumn`: A column was shown - `string` (the column's name)
137
+ * `hidecolumn`: A column was hidden - `string` (the column's name)
138
+ * `columnwidth`: A column was resized - `({ name: string, width: number|string, oldWidth: number|string })`
139
+ * `columnresizeareadoubleclick`: A column resize area was double-clicked - `({ name: string, columnName: string, event: Event })`
140
140
  * `filter`: A filter was applied - `any` - the arguments passed to the filter method
141
141
  * `filterclear`: A filter was cleared
142
142
  * `sort`: The data was sorted - `{ sorts: { "column": "column's name", "descending": true|false }[], resort: true|undefined, comparator: Function }`
@@ -213,14 +213,14 @@ To create a new table, just use `var myTable = new DGTable(INIT_OPTIONS)`.
213
213
  * `getMovableColumns() {boolean}`: *Undocumented yet*
214
214
  * `setResizableColumns({boolean} resizableColumns) {DGTable}`: *Undocumented yet*
215
215
  * `getResizableColumns() {boolean}`: *Undocumented yet*
216
- * `setOnComparatorRequired({function(columnName: string, descending: boolean, defaultComparator: function(a,b):number):{function(a,b):number}}|null comparatorCallback) {DGTable}`: Sets a functions that supplies comparators dynamically
217
- * **comparatorCallback**: a function that returns the comparator for a specific column
216
+ * `setOnComparatorRequired({function(columnName: string, descending: boolean, defaultComparator: function(a,b):number):{function(a,b):number}}|null onComparatorRequired) {DGTable}`: Sets a functions that supplies comparators dynamically
217
+ * **onComparatorRequired**: a function that returns the comparator for a specific column
218
218
  * `setCustomSortingProvider({{function(data: any[], sort: function(any[]):any[]):any[]}|null} customSortingProvider) {DGTable}`: sets custom sorting function for a data set
219
219
  * **customSortingProvider**: provides a custom sorting function (not the comparator, but a sort() alternative) for a data set
220
- * `setColumnWidth({string} column, {number|string} width) {DGTable}`: Sets a column width. Use a number for pixels, a percentage string/decimal for relative width, `'auto'`, or `'rest'`.
221
- * If `autoFillLastColumn` is enabled and visible columns do not reach the table edge, the last visible column expands as a layout-only fallback without changing its configured width.
222
- * `getColumnWidth({string} column) {string|null}`: *Undocumented yet*
223
- * `autoFitColumn({string} column) {DGTable}`: Fits a column to its header/content width when at least one row exists.
220
+ * `setColumnWidth({string} column, {number|string} width) {DGTable}`: Sets a column width. Use a number for pixels, a percentage string/decimal for relative width, `'auto'`, or `'rest'`.
221
+ * If `autoFillLastColumn` is enabled and visible columns do not reach the table edge, the last visible column expands as a layout-only fallback without changing its configured width.
222
+ * `getColumnWidth({string} column) {string|null}`: *Undocumented yet*
223
+ * `autoFitColumn({string} column) {DGTable}`: Fits a column to its header/content width when at least one row exists.
224
224
  * `getColumnConfig({string} column name) {SERIALIZED_COLUMN}`: *Undocumented yet*
225
225
  * `getColumnsConfig() {Object}`: *Undocumented yet*
226
226
  * `getSortedColumns() {Array.<SERIALIZED_COLUMN_SORT>}`: *Undocumented yet*