You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: docs/pages/popup/index.html
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -167,14 +167,14 @@ <h2>Calling the popup plugin</h2>
167
167
168
168
<h2>Opening popups</h2>
169
169
170
-
<p>Using the markup-based configuration, when a link with the <code>data-rel="popup"</code> is tapped, the corresponding popup container with the id referenced in the <code>href</code> of the link will be shown. To open a popup programmatically, call popup with the <code>open</code> method on the popup container:</p>
170
+
<p>Using the markup-based configuration, when a link with the <code>data-rel="popup"</code> is tapped, the corresponding popup container with the <code>id</code> referenced in the <code>href</code> of the link will be shown. To open a popup programmatically, call popup with the <code>open</code> method on the popup container:</p>
171
171
172
172
<pre><code>
173
173
$( "#myPopupDiv" ).popup( "open" )
174
174
</code></pre>
175
175
176
176
<h2>Closing popups</h2>
177
-
<p>Popups can be closed either by clicking outside the popup widget or by pressing the <code>Esc</code> key. Popups can also be closed via the <code>close</code> method:</p>
177
+
<p>By default popups can be closed either by clicking outside the popup widget or by pressing the <code>Esc</code> key. To prevent this, the <code>data-dismissable="false"</code> attribute can be added to the popup. Popups can also be closed via the <code>close</code> method:</p>
178
178
179
179
<pre><code>
180
180
$( "#myPopupDiv" ).popup( "close" )
@@ -192,6 +192,7 @@ <h2>Closing popups</h2>
192
192
193
193
<ahref="#popupCloseRight" data-rel="popup" data-role="button" data-inline="true">Popup with close button right</a>
194
194
<ahref="#popupCloseLeft" data-rel="popup" data-role="button" data-inline="true">Popup with close button left</a>
<p>I have the <code>data-dismissable</code> attribute set to <code>false</code>. I'm not closeable be clicking outside of me.</p>
210
+
</div>
211
+
206
212
<h2>Adding padding</h2>
207
213
<p>For popups with formatted text, padding is needed. We recommend adding the <code>ui-content</code> class to the popup container which adds the standard 15px of padding, just like the page content container. Write your own styles to create a more customized design if needed.</p>
0 commit comments