mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
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:
+3
-1
@@ -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={ () => {} }
|
||||
|
||||
Reference in New Issue
Block a user