Git Product home page Git Product logo

Comments (4)

t1m0n avatar t1m0n commented on August 24, 2024

Hi, thanks for response!
There is no dragging functionality currently, I'll think about implementing this in future releases.

from air-datepicker.

jiezhang917 avatar jiezhang917 commented on August 24, 2024

I really love this datepicker. Kind of the most perfect one I've ever found. I do hope you can add the dragging feature. I tried to modify the codes myself but I failed by breaking all click function. What I thought is making changes on the _bindEvents function like this:

 _bindEvents: function ()  {
    this.$el.on('click', '.datepicker--cell-month .datepicker--cell-year', $.proxy(this._onClickCell, this));
    this.$el.on('mousedown mouseup', '.datepicker--cell-day', $.proxy(this."another function", this));
}

But it will break all click action and the mousedown mouseup on day cell is not working either. Could you give me some heads-up as I need to use this feature soon.

from air-datepicker.

t1m0n avatar t1m0n commented on August 24, 2024

I made a draft version, you can try it by using this gist https://gist.github.com/t1m0n/cf91a8b5a57a4486d243. I can't guarantee proper work, but you can change it to your needs.

from air-datepicker.

jiezhang917 avatar jiezhang917 commented on August 24, 2024

Thank you!!!

from air-datepicker.

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.