[Schedule] Feature request: a condensed, day-cell resources view for a single week #9410
Closed
laugri
started this conversation in
Feature requests
Replies: 1 comment 1 reply
|
Implemented on Set import { useState } from 'react';
import { ResourcesWeekView } from '@mantine/schedule';
function Demo() {
const [date, setDate] = useState('2026-10-28');
return (
<ResourcesWeekView
layout="days"
date={date}
onDateChange={setDate}
dayWidth={120}
maxEventsPerTimeSlot={2}
resources={[{ id: 'room-a', label: 'Room A' }]}
events={[
{
id: 'booking',
resourceId: 'room-a',
title: 'Workshop',
start: '2026-10-30 09:00:00',
end: '2026-11-01 17:00:00',
color: 'blue',
},
]}
/>
);
}With <ResourcesSchedule
resources={resources}
events={events}
defaultView="week"
weekViewProps={{ layout: 'days', dayWidth: 120 }}
onDayClick={({ date, resourceId }) => console.log(date, resourceId)}
/>The day-cell layout supports resource groups, drag and drop, resizing, “+N more” overflow, custom renderers, and static mode. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello ! Thanks again for the recent improvements to Mantine and happy to be using the library. Here's something that arose from suing the various schedule components :
Context
ResourcesMonthViewoffers a very readable, compact layout: one cell per resource per day, events stacked inside, with a "+N more" overflow. It works well for getting an overview of many resources at once: staff, rooms, vehicles, equipment.This layout is only available for a full calendar month, though. When the period you care about is a week, you have two options today:
ResourcesWeekView, which lays the week out on a time axis. That's ideal when the time of day matters, but it gets very wide with many resources, and short events become hard to read.ResourcesMonthView, which shows a whole month even though only one week is relevant, and has no week-by-week navigation.Feature request
Make the condensed day-cell layout (stacked events, no time axis) available for a shorter range, typically a single week, with matching navigation (previous / next week, today). The range should be able to cross a month boundary (e.g. Mon 27 Oct → Sun 2 Nov).
Ideally everything the month view already supports keeps working in that mode: resource groups, drag and drop, resize,
maxEventsPerTimeSlot/ "+N more",withWeekendDays, custom renderers and static mode.Happy to help test or contribute a PR if this sounds useful.
All reactions