]> git.mdlowis.com Git - proto/labwc.git/commitdiff
docs/labwc-menu.5.scd: describe submenus
authorJohan Malm <jgm323@gmail.com>
Sat, 13 Nov 2021 22:19:52 +0000 (22:19 +0000)
committerJohan Malm <jgm323@gmail.com>
Sat, 13 Nov 2021 22:19:52 +0000 (22:19 +0000)
docs/labwc-menu.5.scd

index 5c79f7724d2c060412587c728551cf423b4bafcb..70562f37b9a5818ca972de34d7523bcc8c7f2c2a 100644 (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.