Skip to content

Commit e35a677

Browse files
committed
Datepicker: Note that the buttonImage option must be used with the showOn option, and that the buttonImageOnly option must be used with the buttonImage option. Fixes jquery#146.
1 parent 7a2b894 commit e35a677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/datepicker.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@
261261
<desc>Set to <code>true</code> to automatically resize the input field to accommodate dates in the current <a href="#option-dateFormat"><code>dateFormat</code></a>.</desc>
262262
</option>
263263
<option name="buttonImage" type="String" default='""' example-value='"/images/datepicker.gif"'>
264-
<desc>The URL for the popup button image. If set, the <a href="#option-buttonText"><code>buttonText</code></a> option becomes the <code>alt</code> value and is not directly displayed.</desc>
264+
<desc>A URL of an image to use to display the datepicker when the <a href="#option-showOn"><code>showOn</code></a> option is set to <code>"button"</code> or <code>"both"</code>. If set, the <a href="#option-buttonText"><code>buttonText</code></a> option becomes the <code>alt</code> value and is not directly displayed.</desc>
265265
</option>
266266
<option name="buttonImageOnly" type="Boolean" default="false" example-value="true">
267-
<desc>Whether the button image should be rendered by itself instead of inside a button element.</desc>
267+
<desc>Whether the button image should be rendered by itself instead of inside a button element. This option is only relevant if the <a href="#option-buttonImage"><code>buttonImage</code></a> option has also been set.</desc>
268268
</option>
269269
<option name="buttonText" type="String" default='"..."' example-value='"Choose"'>
270270
<desc>The text to display on the trigger button. Use in conjunction with the <a href="#option-showOn"><code>showOn</code></a> option set to <code>"button"</code> or <code>"both"</code>.</desc>

0 commit comments

Comments
 (0)