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
{{ message }}
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.
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:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: