Skip to content

Commit d333e22

Browse files
Added option closeBtn to dialog option page and data- attributes reference.
1 parent db4a2ea commit d333e22

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/api/data-attributes.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ <h2><a href="../buttons/buttons-grouped.html">Controlgroup</a></h2>
185185
<h2><a href="../pages/dialog/index.html">Dialog</a></h2>
186186
<p>Container with <code>data-role="dialog"</code> or linked to with <code>data-rel="dialog"</code> on the anchor.</p>
187187
<table>
188+
<tr>
189+
<th>data-close-btn</th>
190+
<td><strong>left</strong> | right | none</td>
191+
</tr>
188192
<tr>
189193
<th>data-close-btn-text</th>
190194
<td>string - Text for the close button, dialog only</td>

docs/pages/dialog/options.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ <h2>Dialog</h2>
4040

4141
<dl>
4242

43+
<dt><code>closeBtn</code> <em>string</em></dt>
44+
<dd>
45+
<p class="default">default: "left"</p>
46+
<p>Sets the position of the dialog close button in the header (left or right) or prevents the framework from adding a close button (none).</p>
47+
<p>This option is also exposed as a data attribute: <code>data-close-btn</code>.</p>
48+
49+
<pre><code>$( ".selector" ).dialog(<strong>{ closeBtn: "none" }</strong>);</code></pre>
50+
</dd>
51+
4352
<dt><code>closeBtnText</code> <em>string</em></dt>
4453
<dd>
4554
<p class="default">default: "Close"</p>

0 commit comments

Comments
 (0)