Skip to content

Commit b173436

Browse files
committed
Menu: Added option examples.
1 parent 07529f7 commit b173436

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

entries/menu.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,21 @@
5757
<added>1.9</added>
5858
<options>
5959
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
60-
<option name="icons" type="Object" default='{ submenu: "ui-icon-carat-1-e" }'>
60+
<option name="icons" type="Object" default='{ submenu: "ui-icon-carat-1-e" }' example-value='{ submenu: "ui-icon-circle-triangle-e" }'>
6161
<desc>
6262
Icons to use for submenus, matching an icon defined by the jQuery UI CSS Framework.
6363
<ul>
6464
<li>submenu (string, default: "ui-icon-carat-1-e")</li>
6565
</ul>
6666
</desc>
6767
</option>
68-
<option name="menus" type="String" default='"ul"'>
68+
<option name="menus" type="String" default='"ul"' example-value='"div"'>
6969
<desc>Selector for the elements that serve as the menu container, including sub-menus.</desc>
7070
</option>
71-
<option name="position" type="Object" default='{ my: "top left", at: "top right" }'>
71+
<option name="position" type="Object" default='{ my: "left top", at: "right top" }' example-value='{ my: "left top", at: "right-5 top+5" }'>
7272
<desc>Identifies the position of submenus in relation to the associated parent menu item. The <code>of</code> option defaults to the parent menu item, but you can specify another element to position against. You can refer to the <a href="/position/">jQuery UI Position</a> utility for more details about the various options.</desc>
7373
</option>
74-
<option name="role" type="String" default='"menu"'>
74+
<option name="role" type="String" default='"menu"' example-value="null">
7575
<desc>Customize the ARIA roles used for the menu and menu items. The default uses <code>"menuitem"</code> for items. Setting the <code>role</code> option to <code>"listbox"</code> will use <code>"option"</code> for items. If set to <code>null</code>, no roles will be set, which is useful if the menu is being controlled by another element that is maintaining focus.</desc>
7676
</option>
7777
</options>

0 commit comments

Comments
 (0)