quasarframework / quasar-ui-qcalendar

QCalendar - Quasar App Extension, Vue CLI plug-in and UMD distributions available
https://quasarframework.github.io/quasar-ui-qcalendar
MIT License
439 stars 123 forks source link

Scheduler view, min width of day cell #208

Closed martinfruehmorgen closed 3 years ago

martinfruehmorgen commented 3 years ago

Hello,

like in the resource view (x-axis time values with fixed width and scrollbar for the calendar if the width exceeds the screen width), it would be great to have the same for the scheduler.

See codepen here https://codepen.io/martinfruehmorgen/pen/YzGPLbN

If I could set a min-width for a day cell, I would like to see a scrollbar while the resource and the day header are sticky. This helps to show also greater date intervals with the scheduler.

Thanks Martin

hawkeye64 commented 3 years ago

@martinfruehmorgen Thanks for the feedback. :heart: I'll look into this. Unfortunately, at the moment, it may have to wait for the weekend.

martinfruehmorgen commented 3 years ago

Thank you!

Having a lot of resources and events, do you see a chance to implement a virtual scrolling option for scheduling and resource-view containers which exceed the screen width - this means only visible events (and columns) are rendered like in the virtual scroll of the q-table.

Thanks a lot! Martin

hawkeye64 commented 3 years ago

@martinfruehmorgen Having virtual scroll certainly would be nice, but truthfully I can't see it happening until after the next major version which will be a Vue 3 upgrade (after Quasar is converted to Vue 3). If you know how to implement, feel free to PR. I feel I need to add another prop so that custom-interval calendars (scheduler, etc) can be allowed to go off-screen.

hawkeye64 commented 3 years ago

@martinfruehmorgen Please review and let me know what you think. q-calendar-scheduler--cell-min-width--and--sticky

martinfruehmorgen commented 3 years ago

@hawkeye64 That looks great!

Thanks a lot! Martin

hawkeye64 commented 3 years ago

Released in v3.3.0

hawkeye64 commented 3 years ago

@martinfruehmorgen If you feel like buying me a beer :) https://www.paypal.com/paypalme/hawkeye64