Simon Egersand
2018-02-01 80582080ed523fcb9f85300438e066b76a008a4f
react-datetime.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Ivan Verevkin <vereva@x-root.org>
// These are the typings for Typescript 1.8
// for Typescrip 2.0+ see typings/index.d.ts
// for Typescript 2.0+ see DateTime.d.ts
//// <reference path="../moment/moment-node.d.ts" />
@@ -70,6 +70,11 @@
     */
    onBlur?: (momentOrInputString : string|any) => void;
    /*
     Callback trigger when the view mode changes. The callback receives the selected view mode
     string ('years', 'months', 'days', 'time') as only parameter.
    */
    onViewModeChange?: (viewMode: string) => void;
    /*
     The default view to display when the picker is shown. ('years', 'months', 'days', 'time')
     */
    viewMode?: string|number;
@@ -82,6 +87,12 @@
     */
    inputProps?: Object;
    /*
     Replace the rendering of the input element. The accepted function has openCalendar
     (a function which opens the calendar) and the default calculated props for the input.
     Must return a React component or null.
     */
    renderInput?: (props: Object, openCalendar: Function) => React.Component<any, any>;
    /*
     Define the dates that can be selected. The function receives (currentDate, selectedDate)
     and should return a true or false whether the currentDate is valid or not. See selectable dates.
     */