Skip to main content

Search and Top Navigation

#7096 closed enhancement (wontfix)

Opened March 10, 2011 01:50PM UTC

Closed March 10, 2011 02:14PM UTC

Configuration options callbacks

Reported by: kunderez Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.core Version: 1.8.10
Keywords: Cc:
Blocked by: Blocking:
Description

It would be really useful to allow some configuration options to be passed as function callback for example in jQuery UI Datepicker...

Instead of writing...

$( 'selector' ).datepicker({ beforeShow: setMinDate });
function setMinDate( input ){ $( input ).datepicker( 'option', 'minDate', getMinDate ); }

...you could write...

$( 'selector' ).datepicker({ minDate: getMinDate });

... and datepicker would allways call that function when it needs minimun date value to something.

Attachments (0)
Change History (1)

Changed March 10, 2011 02:14PM UTC by scottgonzalez comment:1

resolution: → wontfix
status: newclosed

This would be a huge pain to implement and would have very little benefit. If you feel strongly about this, please start a discussion on the forums with actual use cases.