Git Product home page Git Product logo

Comments (4)

docrinehart avatar docrinehart commented on September 28, 2024 3

This appears to have an open PR #80 , and I could really use this functionality. I'd rather update the component than have to switch it out for something else, or roll custom support. Please merge this as soon as possible.

from react-bootstrap-date-picker.

wehriam avatar wehriam commented on September 28, 2024

Sorry, thought you were talking about date ranges. I'll look into min and max support.

from react-bootstrap-date-picker.

ilmesi avatar ilmesi commented on September 28, 2024

No problem, my scenario involves two datepickers (for check in & check out dates).
Right now I'm using onChange and setState through refs. For instance, using moment js, I would do something like:

var getStateFromMoment = function(date_moment) {
  return {
    value: date_moment.toDate().toISOString(),
    selectedDate: date_moment.toDate(),
    displayDate: date_moment.toDate(),
    inputValue: date_moment.format('DD/MM/YYYY')
  }
}
this.refs.checkin.setState(
  getStateFromMoment(moment())
);

It would be great to avoid the click event at all.

from react-bootstrap-date-picker.

wehriam avatar wehriam commented on September 28, 2024

You may want to take a look at #51

from react-bootstrap-date-picker.

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.