When you right-click on your GBC application, the context menu that displays can either be the browser context menu or the Genero context menu. By default, it is the browser context menu. To change this behavior and show the Genero context menu instead, you must customize the GBC client and set the theme variable theme-disable-context-menu
appropriately.
Let's transform this...
Before you Begin
This procedure assumes you know how to create or locate theme parts, and how to add theme parts to a theme in your customization. To review, see the topics:
Identify which theme variable file to update
Theme variables are set in the theme.scss.json
file, included as part of a theme part. You can update the theme.scss.json
file in an existing theme part, or you can create a new theme part.
Once you have identified the theme part you will create or modify, open the theme.scss.json
file in a text editor.
Add or update the theme variable
theme-disable-context-menu
is used to disable the browser context menu and enable the Genero context menu. To enable the Genero context menu, set this variable to false
.
// in theme.scss.json
{
…
"theme-disable-context-menu": false,
…
}
Compile and run
$ grunt --customization=<MyCust>