From d40f6d89bf9084e5d03df1aeea8bffd67662f0c0 Mon Sep 17 00:00:00 2001
From: Daan De Deckere <info@daandd.be>
Date: Mon, 12 Feb 2018 20:04:46 +0100
Subject: [PATCH] Add onSubtractTime and onAddTime hooks (#508)

---
 react-datetime.d.ts |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/react-datetime.d.ts b/react-datetime.d.ts
index d994914..0d06291 100644
--- a/react-datetime.d.ts
+++ b/react-datetime.d.ts
@@ -80,6 +80,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?: string|number;
@@ -92,8 +102,8 @@
      */
     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. 
+     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>;

--
Gitblit v1.9.3