Code Monkey home page Code Monkey logo

Comments (3)

alialkhatib avatar alialkhatib commented on July 27, 2024

I'm making this work by implementing a really hacky form that passes a time duration to the timekit filter. Passing the selection (or slider's value or whatever) to the configuration and reloading the calendar should allow the user to dictate the duration.

from booking-js.

laander avatar laander commented on July 27, 2024

@alialkhatib Thanks for chiming in. Yeah, this is what we recommend too for the time being. As you're saying, the length parameter in Find Time can take any duration and as the booking.js config is all JS, you can simply pass it dynamically upon instantiation.

In the near future, I'm considering building a "pick a duration" dropdown into the widget, where visitors can pick from some predefined lengths. We're pretty short on UI space though, but shouldn't be that hard to implement.

from booking-js.

cyntss avatar cyntss commented on July 27, 2024

I agree. ATM i find myself implementing a terrible workaround to solve this. In my use case, the web site is for booking day care (8hs), dog sitting (24hs) or dog walking (1hs).
The user should be able to select the time slot starting from any point, plus, in the dog sitting case, the user should be able to pick as many days as wanted. I see a use case here as well for the other, where a user want to select 5 mondays in a row for dog walking at 10am.

I think this will be very useful for other use cases such: house rental, car rental, etc.

Now.. I just see the message from @laander and I will try to implement the range selector myself...although I have the feeling the user just wants to click around in the calendar because it looks simpler.

from booking-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.