Skip to main content

Search and Top Navigation

#4530 closed feature (wontfix)

Opened May 12, 2009 09:16PM UTC

Closed June 09, 2009 04:05AM UTC

disabled & special days

Reported by: dimivi Owned by:
Priority: minor Milestone: 1.8
Component: ui.datepicker Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

found this functionality at

which allows for disabled & special days

the way it is implemented there is kind of ideal, on init you pass:

onRender: function(date) {

return {

disabled: dateDisabled(date),

className: dateClassName(date)



date is Date object, dateDisabled() returns true or false and dateClassName returns a string containing the class that should be added or null for none

the only problem i've run into with this one is that you can select a range which contains disabled dates if you pick a start date before the disabled dates and an end date after them

Attachments (0)
Change History (3)

Changed May 13, 2009 08:26AM UTC by jzaefferer comment:1

milestone: TBD1.8

Changed May 13, 2009 03:04PM UTC by jzaefferer comment:2

component: ui.coreui.datepicker

Changed June 09, 2009 04:05AM UTC by kbwood comment:3

resolution: → wontfix
status: newclosed

You can already achieve this through the beforeShowDay setting. This is set to a function that is called for each date shown. It receives the date and returns an array where [0] is true if the date is selectable, false if not, [1] is one or more CSS classes to apply, [2] is an optional popup tooltip. See the noWeekends function in the plugin for an example.