Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 0a5a87d

Browse files
Collapsible: Added option corners to option page and data- attribute reference.
1 parent 47b3680 commit 0a5a87d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/api/data-attributes.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ <h2><a href="../content/content-collapsible.html">Collapsible</a></h2>
105105
<th>data-content-theme</th>
106106
<td>swatch letter (a-z)</td>
107107
</tr>
108+
<tr>
109+
<th>data-corners</th>
110+
<td><strong>true</strong> | false</td>
111+
</tr>
108112
<tr>
109113
<th>data-expanded-icon</th>
110114
<td>home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | <strong>minus</strong> | refresh | forward | back | alert | info | search</td>

docs/content/content-collapsible-options.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ <h2>Collapsible content</h2>
7979
<p>This option is also exposed as a data attribute: <code>data-content-theme=&quot;a&quot;</code>.</p>
8080
</dd>
8181

82+
<dt><code>corners</code> <em>boolean</em></dt>
83+
<dd>
84+
<p class="default">default: true</p>
85+
<p>Applies the theme border-radius if set to true. To set the value for all instances of this widget, bind this option to the <a href="../../api/globalconfig.html">mobileinit event</a>:</p>
86+
<pre><code>$( document ).bind( "mobileinit", function(){
87+
<strong>$.mobile.collapsible.prototype.options.corners = false;</strong>
88+
});
89+
</code></pre>
90+
<p>This option is also exposed as a data attribute: <code>data-corners=&quot;false&quot;</code>.</p>
91+
</dd>
92+
8293
<dt><code>expandCueText</code> <em>string</em></dt>
8394
<dd>
8495
<p class="default">default: " click to expand contents"</p>

0 commit comments

Comments
 (0)