rome(input);
rome(input,{weekStart:1});
rome(input,{time:false});
rome(input,{date:false});
var picker = rome(input);// rome.find(input) also returns picker toggle.addEventListener('click',function(){if(picker.restore){picker.restore()}else{picker.destroy()}});
rome(input,{min:'2013-12-30',max:'2014-10-01'});
rome(input,{min:'2014-04-30 19:45',max:'2014-09-01 08:30'});
rome(input,{dateValidator:function(d){return moment(d).day()!== 6}});
rome(input, {
dateValidator: function (d) {
var m = moment(d);
var y = m.year();
var f = 'MM-DD';
var start = moment('12-21', f).year(y).startOf('day');
var end = moment('03-19', f).year(y).endOf('day');
return m.isBefore(start) && m.isAfter(end);
}
});
rome(input, {
timeValidator: function (d) {
var m = moment(d);
var start = m.clone().hour(12).minute(59).second(59);
var end = m.clone().hour(18).minute(0).second(1);
return m.isAfter(start) && m.isBefore(end);
}
});