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) --- DateTime.d.ts | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/DateTime.d.ts b/DateTime.d.ts index ae2a8b9..444b6f0 100644 --- a/DateTime.d.ts +++ b/DateTime.d.ts @@ -99,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; -- Gitblit v1.9.3