Visible hours and days
Customize the visible days and hours along with the scale of the time grid through the scheduler object under the view option. You can control the days to display (eg. Weekdays), the visible time range (eg. 8AM to 6PM), set the time scale (eg. 30 minutes) and set the labels shown (eg. every 15 minutes).
- Specify the first and last day - Use the
startDayandendDayproperties - Set the visible time range - Use the
startTimeandendTimeproperties - Shift the visible time window - Use the
startTimeandendTimeproperties to include ranges that extend into the previous or next day - Control the visibility of empty columns - Use the
hideEmptyColumnsproperty - Control the visibility of fully invalid columns - Use the
hideInvalidColumnsproperty - Control the granularity of the time grid - Use the
timeCellStepandtimeLabelStepproperties
Building a work calendar? Check out this example →
Demo
Display days from
to
This defines which weekdays to display. To set the first day of the week, use the
firstDay option instead.
Display hours from
to
Set the time scale to
Show time labels for every
Hide empty columns
Hide invalid columns
Show current time indicator
$('#calendar').mobiscroll().eventcalendar({
view: {
scheduler: {
type: 'week ',
startTime: '09:00 ',
endTime: '17:00 ',
timeCellStep: 60 ,
timeLabelStep: 60
currentTimeIndicator: true ,
hideEmptyColumns: ,
hideInvalidColumns: ,
}
}
}); 
JSHTML
mobiscroll.setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
$(function () {
var inst = $('#demo-show-hide-hours-days')
.mobiscroll()
.eventcalendar({
clickToCreate: ,
dragToCreate: ,
dragToMove: ,
dragToResize: ,
eventDelete: ,
view: {
scheduler: {
type: 'week',
startDay: 1,
endDay: 5,
startTime: '09:00',
endTime: '18:00',
timeCellStep: 30,
timeLabelStep: 30,
},
},
})
.mobiscroll('getInst');
$.getJSON(
'https://trial.mobiscroll.com/workday-events/?vers=5&callback=?',
function (events) {
inst.setEvents(events);
},
'jsonp',
);
});
<div id="demo-show-hide-hours-days"></div>