Skip to content

Commit 886021a

Browse files
committed
Menu: How to include icons. Fixes jquery#57
1 parent b9768c6 commit 886021a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

entries/menu.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@
2929

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

32+
<p>To add icons to the menu, include them in the markup:</p>
33+
34+
<pre><![CDATA[
35+
<ul id="menu">
36+
<li><a href="#"><span class="ui-icon ui-icon-disk"></span>Save</a></li>
37+
</ul>
38+
]]></pre>
39+
<p>Menu automatically adds the necessary padding to items without icons.</p>
40+
3241
<h3>Keyboard interaction</h3>
3342

3443
<ul>

0 commit comments

Comments
 (0)