Opened 12 years ago
Closed 12 years ago
#7096 closed enhancement (wontfix)
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.
Note: See
TracTickets for help on using
tickets.
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.