Search and Top Navigation
#2699 closed enhancement (worksforme)
Opened April 16, 2008 08:34PM UTC
Closed June 18, 2008 05:38PM UTC
[Patch] ui.datepicker - Higlight custom dates
Reported by: | adis | Owned by: | grabanski |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.5b4 |
Keywords: | Datepicker | Cc: | |
Blocked by: | Blocking: |
Description
When using DatePicker in "inline" mode, it would be nice to be able to highlight/emphasize some dates in addition to today and selected date. Example usage:
$('#datepicker').datepicker({hlDates: ['4 10, 2008', '4 4, 2008']});
I used existing 'datepicker_today' class to make patch shorted, new CSS class should probably be created for this purpose.
Attachments (0)
Change History (6)
Changed April 17, 2008 12:15PM UTC by comment:1
owner: | paul → iMarc |
---|
Changed May 24, 2008 03:39AM UTC by comment:2
milestone: | 1.2.4 |
---|
Milestone 1.2.4 deleted
Changed May 24, 2008 07:27PM UTC by comment:3
component: | ui.core → ui.datepicker |
---|---|
version: | 1.2.3 → 1.5b4 |
Changed May 27, 2008 10:42PM UTC by comment:4
owner: | iMarc → grabanski |
---|---|
status: | new → assigned |
Changed June 16, 2008 12:34PM UTC by comment:5
You can set a beforeShowDay function as one of the options when attaching the datepicker. This function gets called for each day shown, passing the date as a parameter, and expects back an array with [0] = true if selectable, or false if not, and [1] = a CSS class to add to the day's cell. Use this to apply your custom CSS to highlight/emphasize individual dates.
Changed June 18, 2008 05:38PM UTC by comment:6
resolution: | → worksforme |
---|---|
status: | assigned → closed |