Need a special offer?Find out if your project fits.
+

i have to disable LongPress on cell in react-native mobile app

Answered
MayurSinh asked on July 16, 2020

i have one issue with table cell.when i longPress on filled cell then open one tooltip which one i indicated in attech file.i have to disable longpress on fill cell in Flexmonster.

2 answers

Public
Kate Kharchenko Flexmonster July 17, 2020

Hello Mayur,
 
Thank you for your support request.
 
Please check my reply via email that was sent yesterday.
 
Thank you,
Kate
 
 

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster July 22, 2020

Hello,
 
Thank you for reaching out to us.
 
The long-press on mobile devices is handled the same as the right click of the mouse.
In its turn, right-click on the cell entails opening the context menu.
 
Opening of the mentioned context menu can be prevented through customization of the menu itself.
 
The following code snippet demonstrates removing all options from the context menu. As a result, the context menu is not opened after the long press/right-click.

flexmonster.customizeContextMenu(function(items, data, viewType) {
return [];
});

 
We hope it works for your case.
 
Kind regards,
Illia

Please login or Register to Submit Answer