Merge pull request #19133 from ssi-hu-antal-bodnar/master

Add 'minDate' and 'maxDate' definitions for 'react-bootstrap-date-picker'
This commit is contained in:
Daniel Rosenwasser
2017-08-18 14:18:33 -07:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -1,6 +1,6 @@
// Type definitions for react-bootstrap-date-picker 4.0
// Project: https://github.com/pushtell/react-bootstrap-date-picker#readme
// Definitions by: Karol Janyst <https://github.com/LKay>
// Definitions by: Karol Janyst <https://github.com/LKay>, Antal Bodnar <https://github.com/ssi-hu-antal-bodnar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -19,6 +19,8 @@ declare namespace DatePicker {
interface DatePickerProps {
value?: string;
defaultValue?: string;
minDate?: string;
maxDate?: string;
style?: any;
className?: string;
autoFocus?: boolean;
@@ -12,6 +12,8 @@ class Test extends React.Component {
<DatePicker autoFocus={ false }
onChange={ (value: string, c: string) => {} }
dateFormat="MM/DD/YYYY"
minDate="2017-01-01T00:00:00.000Z"
maxDate="2017-12-31T23:59:59.999Z"
clearButtonElement="x"
showClearButton={ true }
onClear={ () => {} }