Skip to content

Commit

Permalink
Add showPreviousMonths property to DatePicker component
Browse files Browse the repository at this point in the history
  • Loading branch information
gyugyu committed Sep 13, 2017
1 parent 2ec393f commit 55aaa63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs-site/bundle.js
Expand Up @@ -38674,6 +38674,7 @@

utcOffset: (0, _moment2.default)().utcOffset(),
monthsShown: 1,
showPreviousMonths: false,
withPortal: false,
shouldCloseOnSelect: true
};
Expand Down Expand Up @@ -38945,6 +38946,7 @@
outsideClickIgnoreClass: outsideClickIgnoreClass,
fixedHeight: _this.props.fixedHeight,
monthsShown: _this.props.monthsShown,
showPreviousMonths: _this.props.showPreviousMonths,
onDropdownFocus: _this.handleDropdownFocus,
onMonthChange: _this.props.onMonthChange,
dayClassName: _this.props.dayClassName,
Expand Down Expand Up @@ -39107,6 +39109,7 @@
selectsEnd: _propTypes2.default.bool,
selectsStart: _propTypes2.default.bool,
showMonthDropdown: _propTypes2.default.bool,
showPreviousMonths: _propTypes2.default.bool,
showWeekNumbers: _propTypes2.default.bool,
showYearDropdown: _propTypes2.default.bool,
forceShowMonthNavigation: _propTypes2.default.bool,
Expand Down
3 changes: 3 additions & 0 deletions src/datepicker.jsx
Expand Up @@ -69,6 +69,7 @@ export default class DatePicker extends React.Component {
selectsEnd: PropTypes.bool,
selectsStart: PropTypes.bool,
showMonthDropdown: PropTypes.bool,
showPreviousMonths: PropTypes.bool,
showWeekNumbers: PropTypes.bool,
showYearDropdown: PropTypes.bool,
forceShowMonthNavigation: PropTypes.bool,
Expand Down Expand Up @@ -102,6 +103,7 @@ export default class DatePicker extends React.Component {
onMonthChange () {},
utcOffset: moment().utcOffset(),
monthsShown: 1,
showPreviousMonths: false,
withPortal: false,
shouldCloseOnSelect: true
}
Expand Down Expand Up @@ -384,6 +386,7 @@ export default class DatePicker extends React.Component {
outsideClickIgnoreClass={outsideClickIgnoreClass}
fixedHeight={this.props.fixedHeight}
monthsShown={this.props.monthsShown}
showPreviousMonths={this.props.showPreviousMonths}
onDropdownFocus={this.handleDropdownFocus}
onMonthChange={this.props.onMonthChange}
dayClassName={this.props.dayClassName}
Expand Down

0 comments on commit 55aaa63

Please sign in to comment.