From b3cea7a6bbfad7520b5cc1da72887e0e5d45d0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=98i=C4=8Da=C5=99?= Date: Tue, 17 Apr 2018 00:13:00 +0200 Subject: [PATCH] Add missing isCustomDate into Settings (#25042) --- types/daterangepicker/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/daterangepicker/index.d.ts b/types/daterangepicker/index.d.ts index 4d777b17b6..5a82950ca9 100644 --- a/types/daterangepicker/index.d.ts +++ b/types/daterangepicker/index.d.ts @@ -135,6 +135,10 @@ declare namespace daterangepicker { * A function that is passed each date in the two calendars before they are displayed, and may return true or false to indicate whether that date should be available for selection or not. */ isInvalidDate?(startDate: string | moment.Moment | Date, endDate?: string | moment.Moment | Date): boolean; + /** + * A function that is passed each date in the two calendars before they are displayed, and may return a string or array of CSS class names to apply to that date's calendar cell. + */ + isCustomDate?(date: string | moment.Moment | Date): string | string[] | undefined; /** * Indicates whether the date range picker should automatically update the value of an < input > element it's attached to at initialization and when the selected dates change. */