FlatpickrOptions constructor
FlatpickrOptions({
- String altFormat = 'F j, Y',
- bool altInput = false,
- String altInputClass = '',
- bool allowInput = false,
- HtmlElement? appendTo,
- String ariaDateFormat = 'F j, Y',
- bool clickOpens = true,
- String dateFormat = 'Y-m-d',
- dynamic defaultDate,
- int defaultHour = 12,
- int defaultMinute = 0,
- List disable = const [],
- bool disableMobile = false,
- List enable = const [],
- bool enableTime = false,
- bool enableSeconds = false,
- Function? formatDate,
- int hourIncrement = 1,
- bool inline = false,
- dynamic locale = 'en',
- dynamic maxDate,
- dynamic minDate,
- int minuteIncrement = 5,
- String mode = 'single',
- String nextArrow = '>',
- bool noCalendar = false,
- dynamic onChange,
- dynamic onValueUpdate,
- dynamic onClose,
- dynamic onOpen,
- dynamic onReady,
- dynamic parseDate(
- String dateString
- String? position,
- String prevArrow = '<',
- bool shorthandCurrentMonth = false,
- int showMonths = 1,
- bool static = false,
- bool time_24hr = false,
- bool weekNumbers = false,
- bool wrap = false,
- String monthSelectorType = 'dropdown',
Implementation
external factory FlatpickrOptions({
String altFormat = 'F j, Y',
bool altInput = false,
String altInputClass = '',
bool allowInput = false,
HtmlElement? appendTo,
String ariaDateFormat = 'F j, Y',
bool clickOpens = true,
String dateFormat = 'Y-m-d',
dynamic defaultDate,
int defaultHour = 12,
int defaultMinute = 0,
List disable = const [],
bool disableMobile = false,
List enable = const [],
bool enableTime = false,
bool enableSeconds = false,
Function? formatDate,
int hourIncrement = 1,
bool inline = false,
dynamic locale = 'en',
dynamic maxDate,
dynamic minDate,
int minuteIncrement = 5,
String mode = 'single',
String nextArrow = '>',
bool noCalendar = false,
dynamic /* FlatpickrEventFunc|List<FlatpickrEventFunc> */ onChange,
dynamic /* FlatpickrEventFunc|List<FlatpickrEventFunc> */ onValueUpdate,
dynamic /* FlatpickrEventFunc|List<FlatpickrEventFunc> */ onClose,
dynamic /* FlatpickrEventFunc|List<FlatpickrEventFunc> */ onOpen,
dynamic /* FlatpickrEventFunc|List<FlatpickrEventFunc> */ onReady,
Function(String dateString)? parseDate,
String? position,
String prevArrow = '<',
bool shorthandCurrentMonth = false,
int showMonths = 1,
bool static = false,
bool time_24hr = false,
bool weekNumbers = false,
bool wrap = false,
String monthSelectorType = 'dropdown',
});