Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
254
Implementing Blackout Dates
posted

This is a common feature that is not present on this control.

Are there any workarounds to implementing blackout dates? I've tried extending the igDatePicker, but can't seem to bind to anything useful... 

Parents
  • 24497
    Verified Answer
    posted

    Hi cperez,

    Can you give more details about functionality related to "blackout" dates?
    If it is about min/max values, then that should work in latest versions. Example:

    $('#datepicker1').igEditor({
     type: 'datepicker',
     button: 'dropdown',
     minValue: new Date(2012, 1, 10),
     maxValue: new Date(2012, 5, 20)
    });

    Passing min/max options to jquery.datepicker was missed by older versions. In older version it could be implemented by application using something like below:

    $('#datepicker1').igEditor({
     type: 'datepicker',
     button: 'dropdown',
     datepickerOptions: {
      minDate: new Date(2012, 1, 15),
      maxDate: new Date(2012, 6, 20)
     }
    });

    If blackout dates means specific dates like holidays, then igEditor/igDatePicker is limited by options available for jquery.datepicker. If datepicker has those options (or it will have them in the future), then they should be supported by igDatePicker as well through datepickerOptions: {....}

Reply Children
No Data