quasar-ui-qcalendar icon indicating copy to clipboard operation
quasar-ui-qcalendar copied to clipboard

School timetable/agenda with time view

Open septatrix opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. I want to show schedules which only depend on the weekday but not on the specific date. The agenda view is insufficient because it does not allow to place events based on time and I have not found a way to make the default QCalendarDay(week) to show abstract weekdays instead of specific dates.

Describe the solution you'd like Options to allow for this behavior in the existing components or a new component.

Describe alternatives you've considered I tried to hack it together with the existing views but to no avail.

septatrix avatar Jun 11 '22 12:06 septatrix

I am not sure I understand. You want to show Monday - Friday, without being date-oriented, but have time slots as well?

hawkeye64 avatar Jun 19 '22 15:06 hawkeye64

I made a crude draft of how this might look (zapping stuff using devtools). Basically a QCalendarDay without any "day of month" or similar.

image

I tried hiding it by providing an empty head-date slot but than only seems to be useful for appending to the slot and not clearing it. The props passed to the day-body slot would then only be a weekday. Though I guess if I am able to hide the head-date slot I could simply use the normal weekday from the timestamp and discard the rest...the wasted performance is negligible.

PS: The v4 docs do not seem to show any slots (as they are empty in the json files)...

septatrix avatar Jun 19 '22 16:06 septatrix

That looks interesting. Thought will have to be given to accomplish this. For instance, normally an event is emitted with prev/next and then each part of the calendar has a slot that can be filled in by date (and some by time). Trying to wrap my head around how prev/next would work or if it is viable.

hawkeye64 avatar Jun 30 '22 18:06 hawkeye64