The optional dynamic section adds new menu items to the context menu.
The section can have the following entry types, all of which are optional:
var block to define "local" variables.
item entries.
These appear as top-level items in a context menu.
menu entries.
These appear as top-level sub-menus in a context menu.
separator entries. These create a
horizontal line between the given entries.
imports. The content of the given file will be placed in the
position of the import.
While the var block should be at the top of the section, the other entries can appear in any order.
In the following example, one top-level item is created, that is
separated with a horizontal line from an adjacent sub-menu, which in turn has one sub-item
on its own:
shell
{
dynamic
{
item(title = 'Hello, World!')
separator
menu(title = 'sub menu' image = #0000ff)
{
item(title = 'test sub-item')
}
}
}
menuitem is an umbrella term for those entry types, that may appear in a menu. These simply include the following:
items create a single menu entry.
Either a title or a image property is mandatory (set to a non-null value). For further details,
please refer to the properties page.
item( title = value [property = value [...] ])
menu entries create a new sub-menu. They have properties and sub-entries.
Either a title or a image property is mandatory (set to a non-null value). For further details,
please refer to the properties page.
menus can have the following entry types, all of which are optional:
var block to define "local" variables.
item entries.menu entries.separator entries. These create a
horizontal line between the given entries.
imports. The content of the
given file will be placed in the position of the import.
menu( title = value [property = value [...] ])
{
[ item() [...] ]
[ menu(){} [...] ]
[ separator [...] ]
[ import 'path/to/import.nss' [...] ]
}
separators create a horizontal line.
separators do not have any mandatory properties. Please refer to the properties page for further details.
separator
separator( property = value [property = value [...] ])