Comments (4)
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.
Sorry, thought you were talking about date ranges. I'll look into min and max support.
from react-bootstrap-date-picker.
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.
You may want to take a look at #51
from react-bootstrap-date-picker.
Related Issues (20)
- How to Make this DatePicker work with different locale ?
- Support React 16? HOT 2
- Problem in using max date HOT 1
- Component's behaviour in tablet, mobile
- calendar image is not rendering HOT 2
- Can't resolve 'create-react-class' HOT 3
- Can't resolve 'create-react-class' in node_modules\react-bootstrap-date-picker\lib' HOT 4
- ISO string for the value does not work properly
- Positioning issue HOT 1
- TypeError: Cannot read property 'object' of undefined ./node_modules/react-bootstrap-date-picker/lib/index.js C:/Users/itama/NodeJS/source codes/react-books-app3/node_modules/react-bootstrap-date-picker/lib/index.js:117 114 | displayName: 'DatePickerCalendar', 115 | 116 | propTypes: { > 117 | selectedDate: _react2.default.PropTypes.object, 118 | displayDate: _react2.default.PropTypes.object.isRequired, 119 | minDate: _react2.default.PropTypes.string, 120 | maxDate: _react2.default.PropTypes.string, HOT 13
- minDate not working
- TypeError: _react2.default.PropTypes is undefined HOT 2
- Module not found: Can't resolve 'react-bootstrap/lib/Button' in '/var/www/html/quiz-management/frontend/node_modules/react-bootstrap-date-picker/lib' HOT 23
- The selected month resets when the component is rendered HOT 1
- Module not found: Can't resolve 'react-bootstrap/lib/Button' HOT 4
- Only Month/Year Picker
- DOES NOT HANDLE NEW ZEALAND TIMEZONE / LOCALE HOT 2
- Date Format not being updated upon componentWillReceiveProps
- Datepicker inside Popover
- Incompatible with React Bootstrap 1.4.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-bootstrap-date-picker.