From b8d07e854fd368d56ecf918212757b9c8d667feb Mon Sep 17 00:00:00 2001
From: Simon Egersand <s.egersand@gmail.com>
Date: Sat, 29 Jul 2017 19:46:27 +0200
Subject: [PATCH] Add TS definitions for onViewModeChange callback

---
 react-datetime.d.ts |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/react-datetime.d.ts b/react-datetime.d.ts
index 62a24ed..f655f3d 100644
--- a/react-datetime.d.ts
+++ b/react-datetime.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;

--
Gitblit v1.9.3