jsl-ui 9.20.11 → 9.21.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.
|
@@ -101,6 +101,13 @@ export var TextFormatter = function (row, cell, value, columnDef, dataContext) {
|
|
|
101
101
|
return escapeHTMLChars(value + "");
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
+
// export let SingleWordTextFormatter: ISlickFormatter = function (row, cell, value, columnDef, dataContext): string {
|
|
105
|
+
// if (value == null) {
|
|
106
|
+
// return " ";
|
|
107
|
+
// } else {
|
|
108
|
+
// return " " + escapeHTMLChars(value + "");
|
|
109
|
+
// }
|
|
110
|
+
// };
|
|
104
111
|
export var TooltipFormatter = function (row, cell, value, columnDef, dataContext) {
|
|
105
112
|
if (value == null) {
|
|
106
113
|
return "";
|
package/lib/grid/slick.grid.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export interface ISlickGridOptions {
|
|
|
80
80
|
editCommandHandler?: (item: any, column: ISlickColumn, editCommand: any) => void;
|
|
81
81
|
resizeDelta?: number;
|
|
82
82
|
dragDelta?: number;
|
|
83
|
+
enableSingleWordSelection?: boolean;
|
|
83
84
|
}
|
|
84
85
|
export interface ISlickGrid<T> {
|
|
85
86
|
"slickGridVersion": string;
|
package/lib/grid/slick.grid.js
CHANGED
|
@@ -1804,7 +1804,8 @@ export function SlickGrid(container, data, columns, options) {
|
|
|
1804
1804
|
var c = columns[j];
|
|
1805
1805
|
newWidth = $(columnElements[j]).width();
|
|
1806
1806
|
if (c.previousWidth !== newWidth) {
|
|
1807
|
-
changedColumns.push({
|
|
1807
|
+
changedColumns.push({
|
|
1808
|
+
cell: j,
|
|
1808
1809
|
width: newWidth,
|
|
1809
1810
|
previousWidth: c.previousWidth,
|
|
1810
1811
|
column: c
|
|
@@ -2951,8 +2952,11 @@ export function SlickGrid(container, data, columns, options) {
|
|
|
2951
2952
|
cellCss + addlCssClasses + "' " +
|
|
2952
2953
|
toolTip +
|
|
2953
2954
|
((getRowHeight(row) !== options.rowHeight)
|
|
2954
|
-
? "style='height:" + (getRowHeight(row) - cellHeightDiff) + "px'
|
|
2955
|
-
: "
|
|
2955
|
+
? "style='height:" + (getRowHeight(row) - cellHeightDiff) + "px'>"
|
|
2956
|
+
: ">");
|
|
2957
|
+
if (options.enableSingleWordSelection) {
|
|
2958
|
+
stringResult += "<div></div>";
|
|
2959
|
+
}
|
|
2956
2960
|
// if there is a corresponding row (if not, this is the Add New row or this data hasn't been loaded yet)
|
|
2957
2961
|
if (item) {
|
|
2958
2962
|
stringResult += (Object.prototype.toString.call(formatterResult) !== "[object Object]" ? formatterResult : formatterResult.text);
|