Skip to content
Permalink
Browse files

Demonstrate range select with min/max date restriction

  • Loading branch information
Keith Wood
Keith Wood committed Jun 16, 2008
1 parent 5a920d2 commit 391c6561efea4c96cbb95ed95c9200f4f3279b41
Showing with 1 addition and 0 deletions.
  1. +1 −0 demos/functional/templates/ui.datepicker.html
@@ -129,6 +129,7 @@
{ desc: 'Range select showing two months', source: '$("#ranges").datepicker({rangeSelect: true, numberOfMonths: 2, showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true});' },
{ desc: 'Range select showing six months (moving three at a time)', source: '$("#ranges").datepicker({rangeSelect: true, numberOfMonths: [2, 3], stepMonths: 3, prevText: "<< Previous Months", nextText: "Next Months >>", showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true});' },
{ desc: 'Range select excluding weekends', source: '$("#ranges").datepicker({rangeSelect: true, numberOfMonths: 2, beforeShowDay: $.datepicker.noWeekends, showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true});' },
{ desc: 'Range select with min/max settings', source: '$("#ranges").datepicker({rangeSelect: true, numberOfMonths: 2, minDate: "6w", maxDate: "2y", showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true});' }
]
},

0 comments on commit 391c656

Please sign in to comment.
You can’t perform that action at this time.