Skip to content

Commit 2707ad2

Browse files
committed
Extend beforeShowMonth documentation
Extend beforeShowMonth documentation
1 parent 4503605 commit 2707ad2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/options.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ beforeShowMonth
3737

3838
Function(Date). Default: $.noop
3939

40-
A function that takes a date as a parameter and returns a boolean indicating whether or not this month is selectable
40+
A function that takes a date as a parameter and returns one of the following values:
41+
42+
* undefined to have no effect
43+
* A Boolean, indicating whether or not this month is selectable
44+
* A String representing additional CSS classes to apply to the month's cell
45+
* An object with the following properties:
46+
47+
* ``enabled``: same as the Boolean value above
48+
* ``classes``: same as the String value above
49+
* ``tooltip``: a tooltip to apply to this date, via the ``title`` HTML attribute
4150

4251

4352
beforeShowYear

0 commit comments

Comments
 (0)