Skip to content

Commit a44f493

Browse files
committed
feat:✨ add isYearPicker option to FlatpickrOptions
* Introduced a new property `isYearPicker` to the FlatpickrOptions interface. * This option allows users to specify whether the calendar should function as a year picker.
1 parent 7ce53f9 commit a44f493

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export default interface FlatpickrOptions {
6262
ignoredFocusElements?: HTMLElement[]; // Elements that will not close the calendar when clicked.
6363
inline?: boolean; // Displays the calendar inline.
6464
isMonthPicker?: boolean; // Whether the calendar is a month picker.
65+
isYearPicker?: boolean; // Whether the calendar is a year picker.
6566
locale?: any | Partial<any>; // The locale, either as a string or as an object.
6667
maxDate?: DateOption; // The maximum date that a user can pick.
6768
maxTime?: DateOption; // The maximum time that a user can pick.

0 commit comments

Comments
 (0)