Ticket #2538 (closed feature: fixed)

Opened 6 years ago

Last modified 5 years ago

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:
Blocking: Blocked by:

Description

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.

Thanks,

Istvan

Change History

comment:1 Changed 6 years ago by paul

  • Owner changed from paul to iMarc

comment:2 Changed 6 years ago by anonymous

  • Milestone 1.2.4 deleted

Milestone 1.2.4 deleted

comment:3 Changed 6 years ago by paul

  • Version changed from 1.2.3 to 1.5b4
  • Component changed from ui.core to ui.datepicker

comment:4 Changed 6 years ago by paul

  • Owner changed from iMarc to grabanski
  • Status changed from new to assigned

comment:5 Changed 6 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 6 years ago by paul

  • Status changed from assigned to closed
  • Resolution set to fixed

I think that should be enough to style the date.

comment:7 Changed 6 years ago by paul

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