Skip to content

Commit 8fdd954

Browse files
committed
Datepicker: beforeShowDay option - Fixing a grammar error and adding some formatting to make the docs more readable
1 parent f961516 commit 8fdd954

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

entries/datepicker.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,13 @@
382382
</option>
383383
<option name="beforeShowDay" type="Function" default="null">
384384
<argument name="date" type="Date"/>
385-
<desc>A function takes a date as a parameter and must return an array with <code>[0]</code> equal to <code>true</code>/<code>false</code> indicating whether or not this date is selectable, <code>[1]</code> equal to a CSS class name or <code>""</code> for the default presentation, and <code>[2]</code> an optional popup tooltip for this date. It is called for each day in the datepicker before it is displayed.</desc>
385+
<desc>A function that takes a date as a parameter and must return an array with:
386+
<ul>
387+
<li><code>[0]</code>: <code>true</code>/<code>false</code> indicating whether or not this date is selectable</li>
388+
<li><code>[1]</code>: a CSS class name to add to the date's cell or <code>""</code> for the default presentation</li>
389+
<li><code>[2]</code>: an optional popup tooltip for this date</li>
390+
</ul>
391+
The function is called for each day in the datepicker before it is displayed.</desc>
386392
</option>
387393
<option name="onChangeMonthYear" type="Function" default="null">
388394
<argument name="year" type="Integer"/>

0 commit comments

Comments
 (0)