FlatpickrOptions constructor

FlatpickrOptions({
  1. String altFormat = 'F j, Y',
  2. bool altInput = false,
  3. String altInputClass = '',
  4. bool allowInput = false,
  5. HtmlElement? appendTo,
  6. String ariaDateFormat = 'F j, Y',
  7. bool clickOpens = true,
  8. String dateFormat = 'Y-m-d',
  9. dynamic defaultDate,
  10. int defaultHour = 12,
  11. int defaultMinute = 0,
  12. List disable = const [],
  13. bool disableMobile = false,
  14. List enable = const [],
  15. bool enableTime = false,
  16. bool enableSeconds = false,
  17. Function? formatDate,
  18. int hourIncrement = 1,
  19. bool inline = false,
  20. dynamic locale = 'en',
  21. dynamic maxDate,
  22. dynamic minDate,
  23. int minuteIncrement = 5,
  24. String mode = 'single',
  25. String nextArrow = '>',
  26. bool noCalendar = false,
  27. dynamic onChange,
  28. dynamic onValueUpdate,
  29. dynamic onClose,
  30. dynamic onOpen,
  31. dynamic onReady,
  32. dynamic parseDate(
    1. String dateString
    )?,
  33. String? position,
  34. String prevArrow = '<',
  35. bool shorthandCurrentMonth = false,
  36. int showMonths = 1,
  37. bool static = false,
  38. bool time_24hr = false,
  39. bool weekNumbers = false,
  40. bool wrap = false,
  41. 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',
});