Range Picker Customization
The calendar view can be customized with a couple of different parameters:
- Month or week calendar - switch between
monthandweekthrough thecalendarTypeoption and set the number of months or weeks through thepagesandcalendarSizeoptions - Set a month change direction - specify
'horizontal'or'vertical'in thecalendarScrolloption - Show week numbers - set the
showWeekNumbersto true and show a week counter starting from the first week of every year - Hide the outer days of a month - set the
showOuterDaysto false in case you don't want to see days from previous and next months
Demo
Configure month or week view
Month view with
months
Week view with
weeks
Show annual week numbers
Week counter is visible
Set a scrolling direction
Show days of outer months
Outer days are visible
mobiscroll.datepicker('#picker', {
select: 'range',
calendarType: 'month ',
pages: 1 ,
calendarSize: 1 ,
showWeekNumbers: false ,
calendarScroll: 'horizontal ' ,
showOuterDays: true
}); JSHTML
mobiscroll.setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
mobiscroll.datepicker('#demo-month', {
controls: ['calendar'],
select: 'range',
display: 'inline',
calendarType: 'month',
pages: 2,
showWeekNumbers: true,
showOuterDays: true,
});
mobiscroll.datepicker('#demo-week', {
controls: ['calendar'],
select: 'range',
display: 'inline',
calendarType: 'week',
calendarSize: 2,
showWeekNumbers: true,
calendarScroll: 'vertical',
});
<div id="demo-month"></div>
<div id="demo-week"></div>