It's easy to make a 5-day view of Monday-Friday - just use the normal "week" setting of the vertical resuorce view, and set the option to hide weekends:
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
plugins: [ 'resourceTimeGrid' ],
timeZone: 'UTC',
defaultView: 'resourceTimeGridWeek', //USE NORMAL VERTICAL RESOURCE WEEK VIEW
header: {
left: 'prev,next',
center: 'title',
right: 'resourceTimeGridWeek'
},
resources: [
{ id: 'a', title: 'Room A' },
{ id: 'b', title: 'Room B' }
],
events: 'https://fullcalendar.io/demo-events.json?with-resources=2',
weekends: false //HIDE WEEKENDS
});
calendar.render();
});
Working demo: https://codepen.io/ADyson82/pen/JjRppYy?editors=001
Documentation of the "weekends" setting: https://fullcalendar.io/docs/v4/weekends
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…