Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Docs: Updated the data-attribue reference for listview icon option

Moved listview icon option to the correct place alphabetically in docs.
  • Loading branch information...
commit d73c9ef5f87d02ada1ecb7bf139c65a4cefdda06 1 parent b27d601
Jason Scott authored
4 docs/api/data-attributes.html
@@ -389,6 +389,10 @@
389 389 <td>swatch letter (a-z)</td>
390 390 </tr>
391 391 <tr>
  392 + <th>data-icon</th>
  393 + <td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | search | false</td>
  394 + </tr>
  395 + <tr>
392 396 <th>data-inset</th>
393 397 <td>true | <strong>false</strong></td>
394 398 </tr>
22 docs/lists/lists-options.html
@@ -114,6 +114,17 @@
114 114 <p>This option is also exposed as a data attribute: <code>data-header-theme=&quot;a&quot;</code>.</p>
115 115 </dd>
116 116
  117 + <dt><code>icon</code> <em>string</em></dt>
  118 + <dd>
  119 + <p class="default">default: "arrow-r"</p>
  120 + <p>Applies an icon from the <a href="../buttons/buttons-icons.html">icon set</a> to all <a href="lists-ul.html">linked list buttons</a>. To set the value for all instances of this widget, bind this option to the <a href="../api/globalconfig.html">mobileinit event</a>:</p>
  121 +<pre><code>$( document ).bind( "mobileinit", function(){
  122 + <strong>$.mobile.listview.prototype.options.icon = "star";</strong>
  123 +});
  124 +</code></pre>
  125 + <p>This option is also exposed as a data attribute: <code>data-icon=&quot;star&quot;</code>.</p>
  126 + </dd>
  127 +
117 128 <dt><code>initSelector</code> <em>CSS selector string</em></dt>
118 129 <dd>
119 130 <p class="default">default: ":jqmData(role='listview')"</p>
@@ -135,17 +146,6 @@
135 146 <p>This option is also exposed as a data attribute: <code>data-inset=&quot;true&quot;</code>.</p>
136 147 </dd>
137 148
138   - <dt><code>icon</code> <em>string</em></dt>
139   - <dd>
140   - <p class="default">default: "arrow-r"</p>
141   - <p>Applies an icon from the <a href="../buttons/buttons-icons.html">icon set</a> to all <a href="lists-ul.html">linked list buttons</a>. To set the value for all instances of this widget, bind this option to the <a href="../api/globalconfig.html">mobileinit event</a>:</p>
142   -<pre><code>$( document ).bind( "mobileinit", function(){
143   - <strong>$.mobile.listview.prototype.options.icon = "star";</strong>
144   -});
145   -</code></pre>
146   - <p>This option is also exposed as a data attribute: <code>data-icon=&quot;star&quot;</code>.</p>
147   - </dd>
148   -
149 149 <dt><code>splitIcon</code> <em>string</em></dt>
150 150 <dd>
151 151 <p class="default">default: "arrow-r"</p>

0 comments on commit d73c9ef

Please sign in to comment.
Something went wrong with that request. Please try again.