@visns-studio/visns-components 2.6.4 → 2.6.5
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/components/crm/DataGrid.jsx +19 -16
- package/package.json +1 -1
|
@@ -499,23 +499,26 @@ const DataGrid = forwardRef(
|
|
|
499
499
|
return null; // Return null if neither search is enabled nor create is disabled
|
|
500
500
|
};
|
|
501
501
|
|
|
502
|
-
const renderRowContextMenu = useCallback(
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
502
|
+
const renderRowContextMenu = useCallback(
|
|
503
|
+
(menuProps, { rowProps }) => {
|
|
504
|
+
if (form && form.newTabUrl && form.newTabUrl !== '') {
|
|
505
|
+
menuProps.autoDismiss = true;
|
|
506
|
+
menuProps.items = [
|
|
507
|
+
{
|
|
508
|
+
label: 'Open Link in a New Tab',
|
|
509
|
+
onClick: () => {
|
|
510
|
+
window.open(
|
|
511
|
+
`${form.newTabUrl}${
|
|
512
|
+
rowProps.data[form.primaryKey]
|
|
513
|
+
}`
|
|
514
|
+
);
|
|
515
|
+
},
|
|
514
516
|
},
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
}
|
|
518
|
-
|
|
517
|
+
];
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
[form]
|
|
521
|
+
);
|
|
519
522
|
|
|
520
523
|
const handleCoding = (c, data) => {
|
|
521
524
|
const icons = [];
|
package/package.json
CHANGED