From 890f351c2965fe2dd3ea548145d8b444bd2ebf2a Mon Sep 17 00:00:00 2001 From: "Taushanova-Atanasova, Inna" Date: Wed, 5 Dec 2018 11:17:49 -0500 Subject: [PATCH 1/3] pass all Calendar inputs from DatePicker --- src/DatePicker/DatePicker.Component.js | 16 ++++++++++++---- src/DatePicker/DatePicker.js | 10 ++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/DatePicker/DatePicker.Component.js b/src/DatePicker/DatePicker.Component.js index 69b22b87c..58c038483 100644 --- a/src/DatePicker/DatePicker.Component.js +++ b/src/DatePicker/DatePicker.Component.js @@ -3,8 +3,12 @@ import { DocsTile, DocsText, Separator, Header, Description, Import, Properties import { DatePicker } from '../'; export const DatePickerComponent = () => { - const defaultDatePickerCode = ` -`; + const defaultDatePickerCode = ` +`; const enableRangeSelectionDatePickerCode = ` `; @@ -28,8 +32,12 @@ export const DatePickerComponent = () => {

Simple Date Picker

- - + + {defaultDatePickerCode} diff --git a/src/DatePicker/DatePicker.js b/src/DatePicker/DatePicker.js index f1ae969de..d3bf3f508 100644 --- a/src/DatePicker/DatePicker.js +++ b/src/DatePicker/DatePicker.js @@ -315,6 +315,8 @@ export class DatePicker extends Component { }; updateDate(date) { + console.log("Inside updateDate function. The event is: ", date) + if (this.props.enableRangeSelection) { if (date.length == 2) { let firstDateMonth = date[0].getMonth() + 1; @@ -407,6 +409,14 @@ export class DatePicker extends Component { Date: Wed, 5 Dec 2018 11:19:41 -0500 Subject: [PATCH 2/3] adds the inputs for Calendar in DatePicker documentation --- src/DatePicker/DatePicker.Component.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/DatePicker/DatePicker.Component.js b/src/DatePicker/DatePicker.Component.js index 58c038483..f9234a2be 100644 --- a/src/DatePicker/DatePicker.Component.js +++ b/src/DatePicker/DatePicker.Component.js @@ -25,7 +25,18 @@ export const DatePickerComponent = () => { From c0847f9cad9713685455a2b45739cac132fd3144 Mon Sep 17 00:00:00 2001 From: "Taushanova-Atanasova, Inna" Date: Wed, 5 Dec 2018 11:35:59 -0500 Subject: [PATCH 3/3] more examples for disable past and future dates --- src/DatePicker/DatePicker.Component.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DatePicker/DatePicker.Component.js b/src/DatePicker/DatePicker.Component.js index f9234a2be..bc69784be 100644 --- a/src/DatePicker/DatePicker.Component.js +++ b/src/DatePicker/DatePicker.Component.js @@ -9,8 +9,8 @@ export const DatePickerComponent = () => { disableWeekday={['Monday', 'Tuesday']} blockedDates={[new Date(2018, 11, 1, 0, 0, 0, 0), new Date(2018, 11, 23, 0, 0, 0, 0)]} />`; - const enableRangeSelectionDatePickerCode = ` -`; + const enableRangeSelectionDatePickerCode = ` +`; return (
@@ -55,8 +55,8 @@ export const DatePickerComponent = () => {

Range Date Picker

- - + + {enableRangeSelectionDatePickerCode}