Posted 10 August 2021, 9:20 am EST
How can disable the sheet tab context menu in FlexSheet?
Forums Home / Wijmo / General Discussion
Posted by: shahadath.hossen on 10 August 2021, 9:20 am EST
Posted 10 August 2021, 9:20 am EST
How can disable the sheet tab context menu in FlexSheet?
Posted 11 August 2021, 10:05 am EST
Hello,
To disable the sheet tab context menu, we may attach a context menu event handler to the FlexSheet and may use the closestClass function of wijmo which finds the closest ancestor (including the original element) that satisfies a class selector and may then use preventDefault() to prevent the context menu from opening.
Please refer to the sample below:
https://stackblitz.com/edit/js-zva9g1?file=index.js
Thank you