Label Customization
Whether you are using the calendar or scroller for range selection, the microcopy for rangeStartLabel and rangeEndLabel can be easily overridden. For flight booking "Outbound" and "Return" makes sense while for accommodation booking "Check in" and "Check out" might be more appropriate.
The range start/end labels can also be hidden in some cases if needed. Use the showRangeLabels option for that.
Furthermore, you have the option to toggle the range highlight with the rangeHighlight option, if needed.
Demo
mobiscroll.datepicker('#picker', {
controls: ['calendar '],
select: 'range',
rangeHighlight: true ,
showRangeLabels: true ,
rangeStartLabel: 'Outbound ' ,
rangeEndLabel: 'Return ' ,
rangeStartHelp: 'Set dates ' ,
rangeEndHelp: 'Set dates '
}); mobiscroll.setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
mobiscroll.datepicker('#demo-calendar', {
controls: ['calendar'],
select: 'range',
display: 'inline',
rangeHighlight: true,
showRangeLabels: true,
rangeStartLabel: 'Outbound',
rangeEndLabel: 'Return',
rangeStartHelp: 'Set dates',
rangeEndHelp: 'Set dates',
});
mobiscroll.datepicker('#demo-scroller', {
controls: ['date'],
select: 'range',
display: 'inline',
rangeHighlight: true,
showRangeLabels: true,
rangeStartLabel: 'Outbound',
rangeEndLabel: 'Return',
rangeStartHelp: 'Set dates',
rangeEndHelp: 'Set dates',
});
<div id="demo-calendar"></div>
<div id="demo-scroller"></div>