react-bootstrap-datetimepicker
react-bootstrap-datetimepicker copied to clipboard
Pass Array of Disabled Dates
Great job on the component!
It would be great to be able to pass an array of dates to be disabled
JQuery Datepicker has something like this:
var array = ["2015-12-14","2015-12-15","2015-12-16"]
$('input').datepicker({
beforeShowDay: function(date){
var string = jQuery.datepicker.formatDate('yy-mm-dd', date);
return [ array.indexOf(string) == -1 ]
}
});
http://jsfiddle.net/CxNNh/2610/