Skip to main content

Bug Tracker

Side navigation

#2549 closed feature (invalid)

Opened March 19, 2008 12:42AM UTC

Closed July 11, 2010 06:40PM UTC

[ui.DatePicker] Multiple periods with an attached classname

Reported by: graste Owned by: iMarc
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: datepicker multiple valid date ranges Cc:
Blocked by: Blocking:
Description

For displaying multiple valid periods of time in the calendar it would be cool, if it's possible to define multiple "minDate" and "maxDate" options. Something like a multi-dimensional array with min-/maxDates could be used, I suppose. Another useful feature for this would be to add a CSS classname to each array element. With that you could highlight specific periods or just color them differently (think in terms of booking systems etc.)

With the above additions a calendar could contain multiple valid periods to either select from or display, while having different colors for each period.

Attachments (0)
Change History (3)

Changed March 19, 2008 01:14PM UTC by paul comment:1

owner: pauliMarc

Changed March 25, 2008 12:04AM UTC by graste comment:2

http://www.frequency-decoder.com/2006/10/02/unobtrusive-date-picker-widgit-update

The above date picker lets you add invalid dates in a YYYYMMDD-format with *-wildcards like:

// Disable specific dates 
datePickerCtrl.datePickers["elemid"].setDisabledDates(["20061225", "****1231", "******01"]);

Using such a format could be used to disable specific dates for selection in a very brief form.

Changed July 11, 2010 06:40PM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

This should be filed in the UI bug tracker if still relevant.

http://dev.jqueryui.com