It's possible to generate a custom set of days when you switch the Calendar to Resources view and fill the "columns" array manually. A JavaScript example:
dp.viewType = "Resources";
dp.columns = [];
var first = DayPilot.Date.today().firstDayOfWeek();
for (var i = 0; i < 14; i++) {
var day = first.addDays(i);
var dayOfWeek = day.getDayOfWeek();
// skip weekends
if (dayOfWeek === 0 || dayOfWeek === 6) {
continue;
}
dp.columns.push({start: day, name: day.toString("dddd MMMM d, yyyy")});
}
In Angular you may need to wrap the generation in a property:
config: any = {
viewType: "Resources",
columns: this.columns
}
get columns(): any[] {
let result = [];
let first = DayPilot.Date.today().firstDayOfWeek();
for (let i = 0; i < 14; i++) {
let day = first.addDays(i);
let dayOfWeek = day.getDayOfWeek();
// skip weekends
if (dayOfWeek === 0 || dayOfWeek === 6) {
continue;
}
result.push({start: day, name: day.toString("ddd M/d/yyyy")});
}
return result;
}
See also:
https://doc.daypilot.org/calendar/resources-view/