Skip to content

Commit 0f2cf08

Browse files
committed
Textinput: corrected pre-rendered example
Closes gh-270
1 parent 4a7bf8e commit 0f2cf08

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

entries/textinput.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ $( ".mySearchInput" ).textinput();
166166
<p>The <placeholder name="name"/> widget wraps <code>input</code>-based widgets in <code>div</code> used for creating the style. <code>textarea</code> elements are not wrapped in such a <code>div</code>.</p>
167167
<p>In the example below, we add the attribute <code>data-corners="false"</code> to the input, because the class <code>ui-corner-all</code> is absent from the wrapper, indicating that the value of the "corners" option should be false.</p>
168168
<pre><code><![CDATA[
169+
<label for="pre-rendered-text-field">Pre-rendered input:</label>
169170
<div class="ui-input-text ui-body-inherit ui-shadow-inset">
170-
<input type="text" data-enhanced="true" data-corners="false" name="pre-rendered-text-field" id="pre-rendered-text-field"></input>
171+
<input type="text" data-enhanced="true" data-corners="false" name="pre-rendered-text-field" id="pre-rendered-text-field">
171172
</div>
172173
]]></code></pre>
173174
<iframe src="/resources/textinput/example8.html" style="width:100%;height:90px;border:0px"></iframe>

resources/textinput/example8.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
<body>
2626
<div data-role="page" style="max-height:90px; min-height:90px;">
2727
<div role="main" class="ui-content">
28+
<label for="pre-rendered-text-field">Pre-rendered input:</label>
2829
<div class="ui-input-text ui-body-inherit ui-shadow-inset">
29-
<input data-enhanced="true" data-corners="false" type="text" name="pre-rendered-text-field" id="pre-rendered-text-field"></input>
30+
<input data-enhanced="true" data-corners="false" type="text" name="pre-rendered-text-field" id="pre-rendered-text-field">
3031
</div>
3132
</div>
3233
</div>

0 commit comments

Comments
 (0)