|
251 | 251 | <desc>Called when the datepicker is selected. The function receives the selected date as text and the datepicker instance as parameters. <code>this</code> refers to the associated input field.</desc>
|
252 | 252 | </option>
|
253 | 253 | </options>
|
| 254 | + <events> |
| 255 | + <event name="beforeShow" type="datepickerbeforeshow"> |
| 256 | + <desc>Can be a function that takes an input field and current datepicker instance and returns an options object to update the datepicker with. It is called just before the datepicker is displayed.</desc> |
| 257 | + <argument name="input" type="jQuery"/> |
| 258 | + <argument name="inst" type="jQuery"/> |
| 259 | + </event> |
| 260 | + <event name="beforeShowDay" type="datepickerbeforeshowday"> |
| 261 | + <desc>The function takes a date as a parameter and must return an array with [0] equal to true/false indicating whether or not this date is selectable, [1] equal to a CSS class name(s) or "" for the default presentation, and [2] an optional popup tooltip for this date. It is called for each day in the datepicker before it is displayed.</desc> |
| 262 | + <argument name="date" type="Date"/> |
| 263 | + </event> |
| 264 | + <event name="onChangeMonthYear" type="datepickeronchangenonthyear"> |
| 265 | + <desc>Allows you to define your own event when the datepicker moves to a new month and/or year. The function receives the selected year, month (1-12), and the datepicker instance as parameters. this refers to the associated input field.</desc> |
| 266 | + <argument name="year" type="Integer"/> |
| 267 | + <argument name="month" type="Integer"/> |
| 268 | + <argument name="inst" type="jQuery"/> |
| 269 | + </event> |
| 270 | + <event name="onClose" type="datepickeronclose"> |
| 271 | + <desc>Allows you to define your own event when the datepicker is closed, whether or not a date is selected. The function receives the selected date as text ("" if none) and the datepicker instance as parameters. this refers to the associated input field.</desc> |
| 272 | + <argument name="dateTxt" type="String"/> |
| 273 | + <argument name="inst" type="jQuery"/> |
| 274 | + </event> |
| 275 | + <event name="onSelect" type="datepickeronselect"> |
| 276 | + <desc>Allows you to define your own event when the datepicker is selected. The function receives the selected date as text and the datepicker instance as parameters. this refers to the associated input field.</desc> |
| 277 | + <argument name="dateTxt" type="String"/> |
| 278 | + <argument name="inst" type="jQuery"/> |
| 279 | + </event> |
| 280 | + </events> |
254 | 281 | <methods>
|
255 | 282 | <xi:include href="../includes/widget-method-destroy.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
|
256 | 283 | <method name="dialog">
|
|
0 commit comments