docs/labwc-menu.5.scd: describe submenus

This commit is contained in:
Johan Malm 2021-11-13 22:19:52 +00:00
parent 1c5b5c25c5
commit 12fb562682

View file

@ -16,9 +16,20 @@ A menu file must be entirely enclosed within <openbox_menu> and
```
<menu id="" label="">
<!-- This is a menu item, such as a program -->
<item label="">
<action></action>
</item>
<!-- This links to a submenu defined else where -->
<menu id="" />
<!-- This links to a submenu defined inline -->
<menu id="" label="">
...some content...
</menu>
</menu>
```
@ -26,6 +37,9 @@ A menu file must be entirely enclosed within <openbox_menu> and
Each menu must be given an id, which is a unique identifier of the menu.
This id is used to refer to the menu in a ShowMenu action.
*menu.label*
The title of the menu, shown in its parent.
*menu.item.label*
The visible name of the menu item.