AproJo

 view release on metacpan or  search on metacpan

share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/docs/datepicker.html  view on Meta::CPAN

</div>
<div class="api-item">
<h3>option( optionName, value )</h3>
<div>Sets the value of the datepicker option associated with the specified <code>optionName</code>.</div>
<ul>
<li>
<div><strong>optionName</strong></div>
<div>Type: <a href="http://api.jquery.com/Types#String">String</a>
</div>
<div>The name of the option to set.</div>
</li>
<li>
<div><strong>value</strong></div>
<div>Type: <a href="http://api.jquery.com/Types#Object">Object</a>
</div>
<div>A value to set for the option.</div>
</li>
</ul>
</div>
<div class="api-item">
<h3>option( options )</h3>
<div>Sets one or more options for the datepicker.</div>
<ul><li>
<div><strong>options</strong></div>
<div>Type: <a href="http://api.jquery.com/Types#Object">Object</a>
</div>
<div>A map of option-value pairs to set.</div>
</li></ul>
</div>
</div>
<div id="method-refresh"><div class="api-item">
<h3>refresh()</h3>
<div>Redraw the date picker, after having made some external modifications.</div>
<ul><li><div class="null-signature">This method does not accept any arguments.</div></li></ul>
</div></div>
<div id="method-setDate"><div class="api-item">
<h3>setDate( date )</h3>
<div>Sets the date for the datepicker. The new date may be a <code>Date</code> object or a string in the current <a href="#option-dateFormat">date format</a> (e.g., <code>"01/26/2009"</code>), a number of days from today (e.g., <code>+7</code>) or a ...
<ul><li>
<div><strong>date</strong></div>
<div>Type: <a href="http://api.jquery.com/Types#Date">Date</a>
</div>
<div>The new date.</div>
</li></ul>
</div></div>
<div id="method-show"><div class="api-item">
<h3>show()</h3>
<div>Open the date picker. If the datepicker is attached to an input, the input must be visible for the datepicker to be shown.</div>
<ul><li><div class="null-signature">This method does not accept any arguments.</div></li></ul>
</div></div>
<div id="method-widget"><div class="api-item">
<h3>widget() <span class="returns">Returns: <a class="return" href="http://api.jquery.com/Types/#jQuery">jQuery</a></span>
</h3>
<div>
		Returns a <code>jQuery</code> object containing the datepicker.
	</div>
<ul><li><div class="null-signature">This method does not accept any arguments.</div></li></ul>
</div></div></section><div class="longdesc" id="entry-longdesc">
		<p>The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and language, restrict the selectable date ranges and add in buttons and other navigation options easily...

		<p>By default, the datepicker calendar opens in a small overlay when the associated text field gains focus. For an inline calendar, simply attach the datepicker to a div or span.</p>

		<h3>Keyboard interaction</h3>
		<p>While the datepicker is open, the following key commands are available:</p>
		<ul>
			<li>PAGE UP: Move to the previous month.</li>
			<li>PAGE DOWN: Move to the next month.</li>
			<li>CTRL+PAGE UP: Move to the previous year.</li>
			<li>CTRL+PAGE DOWN: Move to the next year.</li>
			<li>CTRL+HOME: Move to the current month. Open the datepicker if closed.</li>
			<li>CTRL+LEFT: Move to the previous day.</li>
			<li>CTRL+RIGHT: Move to the next day.</li>
			<li>CTRL+UP: Move to the previous week.</li>
			<li>CTRL+DOWN: Move the next week.</li>
			<li>ENTER: Select the focused date.</li>
			<li>CTRL+END: Close the datepicker and erase the date.</li>
			<li>ESCAPE: Close the datepicker without selection.</li>
		</ul>

		<h3 id="utility-functions">Utility functions</h3>
		<ul>
			<li>$.datepicker.setDefaults( settings ) - Set settings for all datepicker instances.</li>
			<li>$.datepicker.formatDate( format, date, settings ) - Format a date into a string value with a specified format.</li>
			<li>$.datepicker.parseDate( format, value, settings )  - Extract a date from a string value with a specified format.</li>
			<li>$.datepicker.iso8601Week( date ) - Determine the week of the year for a given date: 1 to 53.</li>
			<li>$.datepicker.noWeekends - Set as beforeShowDay function to prevent selection of weekends.</li>
		</ul>

		<h3>Localization</h3>
		<p>Datepicker provides support for localizing its content to cater for different languages and date formats. Each localization is contained within its own file with the language code appended to the name, e.g., <code>jquery.ui.datepicker-fr.js</cod...
		<p>The <code>$.datepicker.regional</code> attribute holds an array of localizations, indexed by language code, with <code>""</code> referring to the default (English). Each entry is an object with the following attributes: <code>closeText</code>, <...
		<p>You can restore the default localizations with:</p>
		<code>$.datepicker.setDefaults( $.datepicker.regional[ "" ] );</code>
		<p>And can then override an individual datepicker for a specific locale:</p>
		<code>$( selector ).datepicker( $.datepicker.regional[ "fr" ] );</code>
	</div>
<h3>Additional Notes:</h3>
<div class="longdesc"><ul><li>
			This widget requires some functional CSS, otherwise it won't work. If you build a custom theme, use the widget's specific CSS file as a starting point.
		</li></ul></div>
<section class="entry-examples" id="entry-examples"><header><h2 class="underline">Example:</h2></header><div class="entry-example" id="example-0">
<h4><span class="desc">A simple jQuery UI Datepicker.</span></h4>
<div class="syntaxhighlighter  "><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="gutter"><div class="line number1 index0 alt2">1</div><div class="line number2 index1 alt1">2</div><div class="line number3 index2 alt2">3</div><d...
<h4>Demo:</h4>
<div class="demo code-demo" data-height="300"></div>
</div></section>
</div></article>

</body>
</html>



( run in 0.577 second using v1.01-cache-2.11-cpan-39bf76dae61 )