@trudb/tru-common-lib 0.2.5 → 0.2.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.
|
@@ -5896,19 +5896,16 @@ class TruDataGridPkeyCellRenderer {
|
|
|
5896
5896
|
eGui;
|
|
5897
5897
|
onRightClick = (event) => {
|
|
5898
5898
|
event.preventDefault();
|
|
5899
|
-
this.contextMenuPosition.x = event.clientX + 'px';
|
|
5899
|
+
this.contextMenuPosition.x = (event.clientX - 27) + 'px';
|
|
5900
5900
|
this.contextMenuPosition.y = event.clientY + 'px';
|
|
5901
5901
|
this.contextMenu.menu?.focusFirstItem('mouse');
|
|
5902
5902
|
this.contextMenu.openMenu();
|
|
5903
5903
|
};
|
|
5904
5904
|
agInit(params) {
|
|
5905
5905
|
this.params = params;
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
// value = 'NEW';
|
|
5910
|
-
//var content = document.createTextNode(value);
|
|
5911
|
-
//params.eGridCell.appendChild(content);
|
|
5906
|
+
let value = params.value;
|
|
5907
|
+
if (params.value < 0)
|
|
5908
|
+
value = 'NEW';
|
|
5912
5909
|
params.eGridCell.addEventListener('contextmenu', this.onRightClick);
|
|
5913
5910
|
}
|
|
5914
5911
|
getGui() {
|