mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 127 forks source link

How to disable past dates #109

Open rkrameshkumar71 opened 6 years ago

rkrameshkumar71 commented 6 years ago

If i have select end date after selected end date all after end date dates disable how can i do PFA link below

http://jsfiddle.net/rkrameshkumar71/2Lu8hjrb/3/

kundankumarmourya commented 6 years ago

$('#rangestart').calendar({ type: 'date', minDate: new Date(), endCalendar: $('#rangeend'), isDisabled: function (date, mode) { return true; }, }); $('#rangeend').calendar({ type: 'date', startCalendar: $('#rangestart') });

lubber-de commented 5 years ago

Since the calendar has been merged into https://github.com/fomantic/Fomantic-UI , here are the docs https://fomantic-ui.com/modules/calendar.html#minmax-date