Skip to content

Commit 87d4963

Browse files
committed
Menu: Documenting how to create dividers.
1 parent 08b0137 commit 87d4963

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

entries/menu.xml

+14
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
<p>Any menu item can be disabled by adding the <code>ui-state-disabled</code> class to that element.</p>
3131

32+
<h3 id="icons">Icons</h3>
33+
3234
<p>To add icons to the menu, include them in the markup:</p>
3335

3436
<pre><code><![CDATA[
@@ -38,6 +40,18 @@
3840
]]></code></pre>
3941
<p>Menu automatically adds the necessary padding to items without icons.</p>
4042

43+
<h3 id="dividers">Dividers</h3>
44+
45+
<p>Divider elements can be created by including unlinked menu items that contain only spaces and/or dashes:</p>
46+
47+
<pre><code><![CDATA[
48+
<ul id="menu">
49+
<li><a href="#">Item 1</a></li>
50+
<li></li>
51+
<li><a href="#">Item 2</a></li>
52+
</ul>
53+
]]></code></pre>
54+
4155
<h3>Keyboard interaction</h3>
4256

4357
<ul>

0 commit comments

Comments
 (0)