Anna Kurylo
2018-10-16 caf7fe1a309d8da984b077ff3c49d59a1c751065
DateTime.d.ts
@@ -42,6 +42,11 @@
         */
        defaultValue?: Date | string | Moment;
        /*
         Represents the month which is viewed on opening the calendar when there is no selected date.
         This prop is parsed by Moment.js, so it is possible to use a date `string` or a `moment` object.
         */
        viewDate?: Date | string | Moment;
        /*
         Defines the format for the date. It accepts any moment.js date format.
         If true the date will be displayed using the defaults for the current locale.
         If false the datepicker is disabled and the component can be used as timepicker.
@@ -76,7 +81,7 @@
         only parameter, if the date in the input is valid. If the date in the input is not valid, the
         callback receives the value of the input (a string).
         */
        onChange?: EventOrValueHandler<ChangeEvent<any>>;
        onChange?: (value: Moment | string) => void;
        /*
         Callback trigger for when the user opens the datepicker.
         */
@@ -94,6 +99,16 @@
         */
        onViewModeChange?: (viewMode: string) => void;
        /*
         Callback trigger when the user navigates to the previous month, year or decade.
         The callback receives the amount and type ('month', 'year') as parameters.
         */
        onNavigateBack?: (amount: number, type: string) => void;
        /*
         Callback trigger when the user navigates to the next month, year or decade.
         The callback receives the amount and type ('month', 'year') as parameters.
         */
        onNavigateForward?: (amount: number, type: string) => void;
        /*
         The default view to display when the picker is shown. ('years', 'months', 'days', 'time')
         */
        viewMode?: ViewMode | number;