amirmehdizadeh / JalaliCalendar

Apache License 2.0
84 stars 46 forks source link

disable future dates #12

Open animgr opened 10 years ago

animgr commented 10 years ago

I want to know if this lib has this feature or not? I know in original Calander.js you can set the maxdate and the days after it in UI will become disable.

 <script type="text/javascript">
$(function() {
var date = new Date();
var currentMonth = date.getMonth();
var currentDate = date.getDate();
var currentYear = date.getFullYear();
$('#datepicker').datepicker({
maxDate: new Date(currentYear, currentMonth, currentDate)
});
});
</script>

would you be kind a guide me to solve this issue?

amirmehdizadeh commented 10 years ago

@animgr, this calendar is in java language not java script. are you want this feature for java? anyway this feature not available at this time. if you want calender for java script moment-jalali is a good solution. but i don't know it has your requested feature or not.