jsl-ui 9.19.6 → 9.19.7
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.core.d.ts +1 -0
- package/lib/grid/slick.grid.js +12 -4
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/grid/slick.core.d.ts
CHANGED
package/lib/grid/slick.grid.js
CHANGED
|
@@ -3089,19 +3089,27 @@ export function SlickGrid(container, data, columns, options) {
|
|
|
3089
3089
|
if (formatterResult === null || formatterResult === undefined) {
|
|
3090
3090
|
formatterResult = "";
|
|
3091
3091
|
}
|
|
3092
|
-
if (Object.prototype.toString.call(formatterResult) !== "[object Object]") {
|
|
3092
|
+
if (typeof formatterResult === "string") { // Object.prototype.toString.call(formatterResult) !== "[object Object]") {
|
|
3093
3093
|
cellNode.innerHTML = formatterResult;
|
|
3094
3094
|
}
|
|
3095
3095
|
else {
|
|
3096
3096
|
cellNode.innerHTML = formatterResult.text;
|
|
3097
3097
|
if (formatterResult.removeClasses && !suppressRemove) {
|
|
3098
|
-
|
|
3098
|
+
for (var _i = 0, _a = formatterResult.removeClasses; _i < _a.length; _i++) {
|
|
3099
|
+
var c = _a[_i];
|
|
3100
|
+
cellNode.classList.remove(c);
|
|
3101
|
+
}
|
|
3102
|
+
// $(cellNode).removeClass(formatterResult.removeClasses);
|
|
3099
3103
|
}
|
|
3100
3104
|
if (formatterResult.addClasses) {
|
|
3101
|
-
|
|
3105
|
+
for (var _b = 0, _c = formatterResult.addClasses; _b < _c.length; _b++) {
|
|
3106
|
+
var c = _c[_b];
|
|
3107
|
+
cellNode.classList.add(c);
|
|
3108
|
+
}
|
|
3109
|
+
// $(cellNode).addClass(formatterResult.addClasses);
|
|
3102
3110
|
}
|
|
3103
3111
|
if (formatterResult.toolTip) {
|
|
3104
|
-
|
|
3112
|
+
cellNode.title = formatterResult.toolTip;
|
|
3105
3113
|
}
|
|
3106
3114
|
}
|
|
3107
3115
|
}
|