I want to add additional functionality to my plugin. When the user right clicks on the Content Page I would like to display a custom popup menu. How can I do this ?
I want to add additional functionality to my plugin. When the user right clicks on the Content Page I would like to display a custom popup menu. How can I do this ?
Hello John,
By content page you mean the page of the browser's active tab or you mean one of your app's views?
In the browsers active tab. So when the user right clicks on a web page a menu is displayed. The user selects an option on the menu and the plugin takes an appropriate action.
Hello John,
We can attach a "contextmenu" event handler to the document body, for example. It's our duty also to add the right HTML code in the document body to conform the menu. Since this can require some CSS rules, and, even when we can add these to the document body from Javascript, I decide to add in DecSoft App Builder the ability to add styles to our WebExtensions contents, in the same way than we already can add Javascript to it.
There is a new release of the product available: please, take a look at it, in particular to the new "WebExtension5" sample app.
Hello John,
You're welcome, sir! :-)
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.