Skip to content

Commit 3353677

Browse files
author
Gabriel Schulhof
committed
Textinput: Re-worded blurb about using widget outside the page
Also replaced a bunch of references to the widget with the name placeholder
1 parent cd8daee commit 3353677

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

entries/textinput.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-stylesheet type="text/xsl" href="../entries2html.xsl" ?>
33
<entry name="textinput" namespace="fn" type="widget" widgetnamespace="mobile" event-prefix="textinput" init-selector='"input[type=&#39;text&#39;], input[type=&#39;search&#39;], :jqmData(type=&#39;search&#39;), input[type=&#39;number&#39;], :jqmData(type=&#39;number&#39;), input[type=&#39;password&#39;], input[type=&#39;email&#39;], input[type=&#39;url&#39;], input[type=&#39;tel&#39;], textarea, input[type=&#39;time&#39;], input[type=&#39;date&#39;], input[type=&#39;month&#39;], input[type=&#39;week&#39;], input[type=&#39;datetime&#39;], input[type=&#39;datetime-local&#39;], input[type=&#39;color&#39;], input:not([type]), input[type=&#39;file&#39;]"'>
44
<title>Textinput Widget</title>
5-
<desc>Creates a textinput widget for textinput, textarea or search input</desc>
5+
<desc>Creates a <placeholder name="name"/> widget for textinput, textarea or search input</desc>
66
<longdesc>
77
<h2>Text Input</h2>
88

@@ -63,7 +63,7 @@
6363
<iframe src="/resources/textinput/example4.html" style="width:100%;height:730px;border:0px"></iframe></p>
6464

6565
<h3 id="search-outside-page">Search input outside the page</h3>
66-
<p>You can use jQuery Mobile-styled <code>textinput</code> widgets with search functionality in the absence of or outside jQuery Mobile pages. To do so, specify their input type as <code>type="text"</code>, add the attribute <code>data-type="search"</code>, and manually call the <code>textinput</code> plugin on the element.</p>
66+
<p>jQuery Mobile-styled <code><placeholder name="name"/></code> widgets can be placed outside jQuery Mobile pages. To do so, specify their input type as <code>type="text"</code>, add the attribute <code>data-type="search"</code>, and manually call the <code><placeholder name="name"/></code> plugin on the element.</p>
6767
<p>The markup:</p>
6868
<pre><code><![CDATA[
6969
<input id="the-search-input" type="text" data-type="search">
@@ -101,9 +101,9 @@ I'm a basic textarea. If this is pre-populated with content, the height will be
101101
<p>The textarea is displayed like this and will grow to fit new lines as you type:
102102
<iframe src="/resources/textinput/example6.html" style="width:100%;height:190px;border:0px"></iframe></p>
103103

104-
<h3>Calling the textinput plugin</h3>
104+
<h3>Calling the <placeholder name="name"/> plugin</h3>
105105

106-
<p>This plugin will auto initialize on any page that contains a textarea or any of the text input types listed above without any need for a <code>data-role</code> attribute in the markup. However, if needed, you can directly call the <code>textinput</code> plugin on any selector, just like any jQuery plugin:</p>
106+
<p>This plugin will auto initialize on any page that contains a textarea or any of the text input types listed above without any need for a <code>data-role</code> attribute in the markup. However, if needed, you can directly call the <code><placeholder name="name"/></code> plugin on any selector, just like any jQuery plugin:</p>
107107
<pre><code><![CDATA[
108108
$( "input" ).textinput();
109109
]]></code></pre>
@@ -167,9 +167,9 @@ $( "input" ).textinput();
167167
<code>$.mobile.textinput.prototype.options.clearBtnText</code> property to a string of your choosing.</p>
168168
<p>This option is provided by the <code>clearButton</code> extension.</p>
169169

170-
<h3>Calling the textinput plugin</h3>
170+
<h3>Calling the <placeholder name="name"/> plugin</h3>
171171

172-
<p>This plugin will auto-initialize on any page that contains a text input with the <code>type="search"</code> attribute without any need for a <code>data-role</code> attribute in the markup. However, if needed, you can directly call the <code>textinput</code> plugin on a selector, just like any jQuery plugin:</p>
172+
<p>This plugin will auto-initialize on any page that contains a text input with the <code>type="search"</code> attribute without any need for a <code>data-role</code> attribute in the markup. However, if needed, you can directly call the <code><placeholder name="name"/></code> plugin on a selector, just like any jQuery plugin:</p>
173173

174174
<pre><code><![CDATA[
175175
$( ".mySearchInput" ).textinput();

0 commit comments

Comments
 (0)