@trudb/tru-common-lib 0.2.125 → 0.2.126
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.
|
@@ -6015,19 +6015,22 @@ class TruDataGridCellRenderer {
|
|
|
6015
6015
|
onPaste = (event) => {
|
|
6016
6016
|
};
|
|
6017
6017
|
init(params) {
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
}
|
|
6018
|
+
}
|
|
6019
|
+
agInit(params) {
|
|
6020
|
+
this.params = params;
|
|
6021
|
+
this.displayValue = params.value;
|
|
6022
|
+
//params.eGridCell.innerHTML = '';
|
|
6023
|
+
//let value = params.value;
|
|
6024
|
+
//if (params.value === null)
|
|
6025
|
+
// value = '';
|
|
6026
|
+
//if (params.colDef.cellEditor && params.colDef.cellEditor.name === "StdRichTextList") {
|
|
6027
|
+
// var p = document.createElement('div');
|
|
6028
|
+
// p.innerHTML = value
|
|
6029
|
+
// params.eGridCell.appendChild(p);
|
|
6030
|
+
//} else {
|
|
6031
|
+
// var content = document.createTextNode(value);
|
|
6032
|
+
// params.eGridCell.appendChild(content);
|
|
6033
|
+
//}
|
|
6031
6034
|
this.validationContainer = document.createElement('div');
|
|
6032
6035
|
this.validationContainer.className = 'dialog-target';
|
|
6033
6036
|
let validationFlag = document.createElement('span');
|
|
@@ -6038,10 +6041,6 @@ class TruDataGridCellRenderer {
|
|
|
6038
6041
|
params.eGridCell.addEventListener('contextmenu', this.onRightClick);
|
|
6039
6042
|
Object.assign(params.eGridCell.style, new TruUtil().rulesEval(params.data[params.colDef.field].rules(params.data.$entity)));
|
|
6040
6043
|
}
|
|
6041
|
-
agInit(params) {
|
|
6042
|
-
this.params = params;
|
|
6043
|
-
this.displayValue = params.value;
|
|
6044
|
-
}
|
|
6045
6044
|
getGui() {
|
|
6046
6045
|
return this.eGui;
|
|
6047
6046
|
}
|