@trudb/tru-common-lib 0.2.293 → 0.2.294
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.
|
@@ -6512,14 +6512,14 @@ class TruDataGridPkeyCellRenderer {
|
|
|
6512
6512
|
this.dataGridClipboard = dataGridClipboard;
|
|
6513
6513
|
}
|
|
6514
6514
|
onRightClick = (event) => {
|
|
6515
|
-
event.preventDefault();
|
|
6516
|
-
this.copyIsDisabled = this.params.api.getSelectedRows().length ? false : true;
|
|
6517
|
-
this.pasteIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
|
|
6518
|
-
this.insertAtTopIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
|
|
6519
|
-
this.contextMenuPosition.x = event.pageX + 'px';
|
|
6520
|
-
this.contextMenuPosition.y = (event.pageY) + 'px';
|
|
6521
|
-
this.contextMenu.menu?.focusFirstItem('mouse');
|
|
6522
|
-
this.contextMenu.openMenu();
|
|
6515
|
+
//event.preventDefault();
|
|
6516
|
+
//this.copyIsDisabled = this.params.api.getSelectedRows().length ? false : true;
|
|
6517
|
+
//this.pasteIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
|
|
6518
|
+
//this.insertAtTopIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
|
|
6519
|
+
//this.contextMenuPosition.x = event.pageX + 'px';
|
|
6520
|
+
//this.contextMenuPosition.y = (event.pageY) + 'px';
|
|
6521
|
+
//this.contextMenu.menu?.focusFirstItem('mouse');
|
|
6522
|
+
//this.contextMenu.openMenu();
|
|
6523
6523
|
};
|
|
6524
6524
|
onMouseDown = (event) => {
|
|
6525
6525
|
};
|