Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#2538 closed feature (fixed)

UI.datepicker custom cell renderer

Reported by: istvano Owned by: grabanski
Priority: major Milestone: 1.5.2
Component: ui.datepicker Version: 1.5b4
Keywords: Cc:
Blocked by: Blocking:


Dear All,

I love the datepicker it is amazing.

I am using it for most for our date selection, although There is an other plugin which has one very well needed feature for me which I could not find yet in the UI Datepicker.

this is a callback when the component renders it's individual cells.

The reason is that, Sometimes we use the same date component to select dates as well as to show some grafical signs on certain dates to indicate events, or different things occuring on that date, with a custom callRender callback we can render these graphical elements there for specific date.

I think this would be a well values feature also in the UI.Datepicker.



Change History (7)

comment:1 Changed 15 years ago by paul

Owner: changed from paul to iMarc

comment:2 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:3 Changed 15 years ago by paul

Component: ui.coreui.datepicker

comment:4 Changed 15 years ago by paul

Owner: changed from iMarc to grabanski
Status: newassigned

comment:5 Changed 15 years ago by kbwood

You can use beforeShowDay to customise the presentation of individual days. It takes a date as a parameter and returns an array with [0] = true if selectable, false if not, [1] = CSS class name(s) to add, [2] = text to set as cell title (optional).

comment:6 Changed 15 years ago by paul

Resolution: fixed
Status: assignedclosed

I think that should be enough to style the date.

comment:7 Changed 15 years ago by paul

Milestone: 1.5.2
Note: See TracTickets for help on using tickets.