mirror of
https://github.com/labwc/labwc.git
synced 2026-03-20 05:34:12 -04:00
docs/labwc-menu.5.scd: describe submenus
This commit is contained in:
parent
1c5b5c25c5
commit
12fb562682
1 changed files with 14 additions and 0 deletions
|
|
@ -16,9 +16,20 @@ A menu file must be entirely enclosed within <openbox_menu> and
|
||||||
|
|
||||||
```
|
```
|
||||||
<menu id="" label="">
|
<menu id="" label="">
|
||||||
|
|
||||||
|
<!-- This is a menu item, such as a program -->
|
||||||
<item label="">
|
<item label="">
|
||||||
<action></action>
|
<action></action>
|
||||||
</item>
|
</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>
|
</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.
|
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.
|
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*
|
*menu.item.label*
|
||||||
The visible name of the menu item.
|
The visible name of the menu item.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue