Skip to main content

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 paul comment:1

owner: pauliMarc

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 paul comment:3

component: ui.coreui.datepicker
version: 1.2.31.5b4

Changed May 27, 2008 10:42PM UTC by paul comment:4

owner: iMarcgrabanski
status: newassigned

Changed June 16, 2008 12:34PM UTC by kbwood 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 kbwood comment:6

resolution: → worksforme
status: assignedclosed