I have a requirement of showing calendar to only 52 weeks back from current day in dojo ,I'm using dijit/Calendar for the same,can some one help me by providing light on displaying only 52 weeks back from current day in dijit calendar.
currently I am using data-dojo-props which is disabling only weekends in calendar .
<div id="mycal" data-dojo-attachpoint="mycal"
data-dojo-type="dijit.calendar"
data-dojo-props="isDisabledDate:dojo.date.locale.isWeekend">
</div>
This is so simple , you have to do it in programmatic manner ,
Create a calendar dijit , then overide its
isDisabledDatefunction by checking both show cal view days are > or are week days : as belowSee below working snippet :