Opened 12 years ago

Closed 10 years ago

#5958 closed feature (wontfix)

Datepicker: Allow the use of a function to determine the altField element(s)

Reported by: jamescryer Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.4
Keywords: haspatch Cc:
Blocked by: Blocking:


I would like it to be possible to use a function to return the altField property for a Datepicker instance.

My use case is that I have many datepickers on a page, a selector is insufficient to return the alternative field.

The code below represents how I would like to implement this enhancement.

        altField: function(inst){
            return $(this).siblings('.dt-hidden');
        altFormat: 'd/m/yy'

Change History (5)

comment:2 Changed 11 years ago by Scott González

Type: enhancementfeature

comment:3 Changed 10 years ago by Scott González

Milestone: TBD1.11.0

comment:4 Changed 10 years ago by mikesherov

Keywords: haspatch added; datepicker altField removed
Status: newopen

comment:5 Changed 10 years ago by Scott González

Resolution: wontfix
Status: openclosed

We're likely just getting rid of alt fields. You should just bind to the appropriate event and update whatever fields you want.

Note: See TracTickets for help on using tickets.