jsl-ui 9.14.0 → 9.14.1
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/lib/grid/slick.creator.js +12 -14
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -127,13 +127,12 @@ export function createJSLGrid(selector, data, columns, option) {
|
|
|
127
127
|
if (grid.onBeforeEditCell.notify({ row: i, cell: args.range.fromCell, item: dataView.getItem(i), column: column }, e) !== false) {
|
|
128
128
|
var currentItem = dataView.getItem(i);
|
|
129
129
|
items.push(currentItem);
|
|
130
|
-
if (options.setDataItemValueForColumn != null) {
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
grid.invalidateRow(i);
|
|
130
|
+
// if (options.setDataItemValueForColumn != null) {
|
|
131
|
+
// options.setDataItemValueForColumn(currentItem, column, value);
|
|
132
|
+
// } else {
|
|
133
|
+
// dataView.getItem(i)[column.field] = value;
|
|
134
|
+
// }
|
|
135
|
+
// grid.invalidateRow(i);
|
|
137
136
|
// grid.onAfterEdit.notify({ grid, oldValue, newValue: value, column, item: dataView.getItem(i) }, e);
|
|
138
137
|
}
|
|
139
138
|
}
|
|
@@ -147,13 +146,12 @@ export function createJSLGrid(selector, data, columns, option) {
|
|
|
147
146
|
if (grid.onBeforeEditCell.notify({ row: i, cell: args.range.fromCell, item: dataView.getItem(i), column: column }, e) !== false) {
|
|
148
147
|
var currentItem = dataView.getItem(i);
|
|
149
148
|
items.push(currentItem);
|
|
150
|
-
if (options.setDataItemValueForColumn != null) {
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
grid.invalidateRow(i);
|
|
149
|
+
// if (options.setDataItemValueForColumn != null) {
|
|
150
|
+
// options.setDataItemValueForColumn(currentItem, column, value);
|
|
151
|
+
// } else {
|
|
152
|
+
// dataView.getItem(i)[column.field] = value;
|
|
153
|
+
// }
|
|
154
|
+
// grid.invalidateRow(i);
|
|
157
155
|
// grid.onAfterEdit.notify({ grid, oldValue, newValue: value, column, item: dataView.getItem(i) }, e);
|
|
158
156
|
}
|
|
159
157
|
}
|