You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my javascript file I use the code below to trigger a context menu. Notice that I used two different methods to trigger the click, however none of them work. The context menu is displaying as it should btw, just the click handlers are not triggered. How should this be done?
constasyncDeskgap=deskgap.asyncNodeconstcurWin=asyncDeskgap.getCurrentWindow()asyncDeskgap.require('deskgap').then(deskgap=>{deskgap.prop('Menu').invoke('buildFromTemplate',[{'label': 'label one',onClick(){console.log('click')}},{'type': 'separator'},{'label': 'label two',click(){console.log('k do this')}}]).invoke('popup',curWin).value()})
The text was updated successfully, but these errors were encountered:
In my javascript file I use the code below to trigger a context menu. Notice that I used two different methods to trigger the click, however none of them work. The context menu is displaying as it should btw, just the click handlers are not triggered. How should this be done?
The text was updated successfully, but these errors were encountered: