timekit-io / booking-js

:date: Make a beautiful embeddable booking widget in minutes
https://developers.timekit.io/docs/booking-widget-v2
MIT License
2.42k stars 189 forks source link

Multiple selection #86

Open cyntss opened 8 years ago

cyntss commented 8 years ago

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.

laander commented 8 years ago

@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!

GlennVanSchil commented 8 years ago

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.

ovninosa commented 8 years ago

+1

tezukzai commented 7 years ago

+1

laander commented 7 years ago

@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)

cyntss commented 7 years ago

@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.