diff --git a/docs/syntax/dynamic.html b/docs/syntax/dynamic.html index 3e7a38b..bc627d2 100644 --- a/docs/syntax/dynamic.html +++ b/docs/syntax/dynamic.html @@ -1,11 +1,35 @@ -
This section adds new menu items to the context menu.
-Dynamic items have three types (menu, item, and separator). with properties to add new items with customization
- explained below in more details.
The types (menu and item) must contain the property title at least and their
- value cannot be null.
A separator-type item can be added without any
- properties.
In the following example, it shows how to write add an items to dynamic:
+The 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
@@ -14,13 +38,79 @@
separator
menu(title = 'sub menu' image = #0000ff)
{
- item(title = 'test subitem')
+ item(title = 'test sub-item')
}
}
}
-items create a single menu entry.
+ +Only the title property is mandatory (set to a non-null value). Please refer to the properties section below for further
+ details.
item( title = value [property = value [...] ])
+menu entries create a new sub-menu. They have properties + and sub-entries.
+ +Only the title property is mandatory (set to a non-null value). Please refer to the properties section below for further
+ details.
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 section below for further + details.
+ +separator
+separator( property = value [property = value [...] ])
+| Title | Sets a value indicating the caption of the menuitem. - This property must be included with menu and item if image propery is not - defined, not required for separator. +For menu and item entries, this property must be included with if no
+ Required for menu, item. |
@@ -246,7 +340,9 @@
|||||||||||||||||
| Position (pos) | -The position at which a menuitem should be inserted into the menu. Position can have one of the + | The position at which a menuitem should be inserted into the menu. Position can have one of the following parameters:
|