timekit-io/booking-js

Multiple selection

Opened this issue · 6 comments

A use case is that users need to select multiple time slots in different dates, i.e.: every day at 11:30am get the delivery of my lunch... or i.e.: From the 1st of March till the 15th of march (counting entire days) I want to rent a car.

So, I would allow users to select on multiple "boxes", as well as implement a checkbox to switch from 1 hour slot to 1 day slot, and then they select the boxes.

@cyntss Is this related to/the same as #73 ?

Selecting multiple timeslots is something we're considering, but it doesn't fall into the primary use-case of Booking.js which is for sales & support scenarios. We'll keep it in mind though, thanks for chiming in!

I have a need for the same functionality, but in a different use case. My time interval is 30 minutes, but an appointment can take up to 1:30h so I need to able to select 3 slots next to each other.

+1

+1

@cyntss @GlennVanSchil @javenosa @tezukzai
Although the widget doesn't natively support dynamic durations, you can achieve this yourself quite easily with a bit of wrapper code.

Here's a live demo: http://cdn.rawgit.com/timekit-io/booking-js/7061697e/examples/selectable-length.htm (do note that widgets doesn't load with data because they use a demo app)

Here's the source code: https://github.com/timekit-io/booking-js/blob/master/examples/selectable-length.htm (hacked together with jQuery, but any other frontend lib would work fine too)

@laander I think it is a good workaround for the different time slots length, but it still doesn't fix the main issue: multiple selections.