Skip to content

Commit 823c3d2

Browse files
committed
Menu: Use @init-only for menus and role options.
1 parent 38d0f63 commit 823c3d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

entries/menu.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,19 @@
7272
</ul>
7373
</desc>
7474
</option>
75-
<option name="menus" type="String" default='"ul"' example-value='"div"'>
75+
<option name="menus" type="String" default='"ul"' example-value='"div"' init-only="true">
7676
<desc>
7777
<p>Selector for the elements that serve as the menu container, including sub-menus.</p>
78-
<p><em>Note: The <code>menus</code> option should not be changed after initialization. Existing submenus will not be updated.</em></p>
78+
<div class="warning"><strong>Note:</strong> The <code>menus</code> option should not be changed after initialization. Existing submenus will not be updated.</div>
7979
</desc>
8080
</option>
8181
<option name="position" type="Object" default='{ my: "left top", at: "right top" }' example-value='{ my: "left top", at: "right-5 top+5" }'>
8282
<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>
8383
</option>
84-
<option name="role" type="String" default='"menu"' example-value="null">
84+
<option name="role" type="String" default='"menu"' example-value="null" init-only="true">
8585
<desc>
8686
<p>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.</p>
87-
<p><em>Note: The <code>role</code> option should not be changed after initialization. Existing (sub)menus and menu items will not be updated.</em></p>
87+
<div class="warning"><strong>Note:</strong> The <code>role</code> option should not be changed after initialization. Existing (sub)menus and menu items will not be updated.</div>
8888
</desc>
8989
</option>
9090
</options>

0 commit comments

Comments
 (0)