I was wondering if anybody knew how to append the disabledRanges property of the dateChooser Component, kinda like this(assuming cal as the instance name):
dRange = [{rangeStart: new Date(2009,0,0), rangeEnd: new Date(2009,0,20)}];
cal.disabledRange = dRange; // will disable all up to the 20th
I want to turn dRange into:
*dRange = [{rangeStart: new Date(2009,0,0), rangeEnd: new Date(2009,0,20)},{rangeStart: new Date(2009,0,22), rangeEnd: new Date(2009,0,31)}];
cal.disabledRange = dRange; // will disable all up to the 20th then all the dates past the 21st effecively disabling all dates but the 21st
*
something like:
*dRange += [{my new dates…}]; *
…But that doesn’t work