projects/angularx-flatpickr/src/lib/flatpickr-defaults.service.ts
Properties |
|
allowInput |
allowInput:
|
Type : boolean
|
Optional |
Allows the user to enter a date directly input the input field. By default, direct entry is disabled. |
allowInvalidPreload |
allowInvalidPreload:
|
Type : boolean
|
Optional |
Allows the preloading of an invalid date. When disabled, the field will be cleared if the provided date is invalid |
altFormat |
altFormat:
|
Type : string
|
Optional |
Exactly the same as date format, but for the altInput field. |
altInput |
altInput:
|
Type : boolean
|
Optional |
Example :
|
altInputClass |
altInputClass:
|
Type : string
|
Optional |
This class will be added to the input element created by the altInput option.
Note that |
appendTo |
appendTo:
|
Type : HTMLElement
|
Optional |
Instead of |
ariaDateFormat |
ariaDateFormat:
|
Type : string
|
Optional |
Defines how the date will be formatted in the aria-label for calendar days, using the same tokens as dateFormat. If you change this, you should choose a value that will make sense if a screen reader reads it out loud. |
clickOpens |
clickOpens:
|
Type : boolean
|
Optional |
Whether clicking on the input should open the picker.
You could disable this if you wish to open the calendar manually |
convertModelValue |
convertModelValue:
|
Type : boolean
|
Optional |
Auto convert the ngModel value from a string to a date / array of dates / from - to date object depending on the |
dateFormat |
dateFormat:
|
Type : string
|
Optional |
A string of characters which are used to define how the date will be displayed in the input box. The supported characters are defined in the table below. |
defaultHour |
defaultHour:
|
Type : number
|
Optional |
Initial value of the hour element. |
defaultMinute |
defaultMinute:
|
Type : number
|
Optional |
Initial value of the minute element. |
defaultSeconds |
defaultSeconds:
|
Type : number
|
Optional |
Initial value of the seconds element. |
disable |
disable:
|
Type : DisableEnableDate[]
|
Optional |
See disabling dates. |
disableMobile |
disableMobile:
|
Type : boolean
|
Optional |
Set disableMobile to true to always use the non-native picker. By default, Flatpickr utilizes native datetime widgets unless certain options (e.g. disable) are used. |
enable |
enable:
|
Type : DisableEnableDate[]
|
Optional |
See enabling dates. |
enableSeconds |
enableSeconds:
|
Type : boolean
|
Optional |
Enables seconds in the time picker. |
enableTime |
enableTime:
|
Type : boolean
|
Optional |
Enables time picker. |
formatDate |
formatDate:
|
Type : function
|
Optional |
Allows using a custom date formatting function instead of the built-in handling for date formats using dateFormat, altFormat, etc. |
getWeek |
getWeek:
|
Type : function
|
Optional |
You may override the function that extracts the week numbers from a Date by supplying a getWeek function. It takes in a date as a parameter and should return a corresponding string that you want to appear left of every week. |
hourIncrement |
hourIncrement:
|
Type : number
|
Optional |
Adjusts the step for the hour input (incl. scrolling). |
ignoredFocusElements |
ignoredFocusElements:
|
Type : HTMLElement[]
|
Optional |
Array of HTML elements that should not close the picker on click. |
inline |
inline:
|
Type : boolean
|
Optional |
Displays the calendar inline. |
locale |
locale:
|
Type : object | string
|
Optional |
The locale object or string to use for the locale. |
maxDate |
maxDate:
|
Type : string | Date
|
Optional |
The maximum date that a user can pick to (inclusive). |
maxTime |
maxTime:
|
Type : string
|
Optional |
The maximum time that a user can pick to (inclusive). |
minDate |
minDate:
|
Type : string | Date
|
Optional |
The minimum date that a user can start picking from (inclusive). |
minTime |
minTime:
|
Type : string
|
Optional |
The minimum time that a user can start picking from (inclusive). |
minuteIncrement |
minuteIncrement:
|
Type : number
|
Optional |
Adjusts the step for the minute input (incl. scrolling). |
mode |
mode:
|
Type : "single" | "multiple" | "range"
|
Optional |
Select a single date, multiple dates or a date range. |
monthSelectorType |
monthSelectorType:
|
Type : "static" | "dropdown"
|
Optional |
How the month should be displayed in the header of the calendar. |
nextArrow |
nextArrow:
|
Type : string
|
Optional |
HTML for the arrow icon, used to switch months. |
noCalendar |
noCalendar:
|
Type : boolean
|
Optional |
Hides the day selection in calendar. Use it along with |
now |
now:
|
Type : Date | string | number
|
Optional |
Provide a date for 'today', which will be used instead of "new Date()" |
parseDate |
parseDate:
|
Type : function
|
Optional |
Function that expects a date string and must return a Date object. |
plugins |
plugins:
|
Type : any[]
|
Optional |
Array of plugin instances to use. |
prevArrow |
prevArrow:
|
Type : string
|
Optional |
HTML for the left arrow icon. |
shorthandCurrentMonth |
shorthandCurrentMonth:
|
Type : boolean
|
Optional |
Show the month using the shorthand version (ie, Sep instead of September). |
showMonths |
showMonths:
|
Type : number
|
Optional |
The number of months shown. |
static |
static:
|
Type : boolean
|
Optional |
Position the calendar inside the wrapper and next to the input element. (Leave |
time24hr |
time24hr:
|
Type : boolean
|
Optional |
Displays time picker in 24 hour mode without AM/PM selection when enabled. |
utc |
utc:
|
Type : boolean
|
Optional |
When true, dates will parsed, formatted, and displayed in UTC. It's recommended that date strings contain the timezone, but not necessary. |
weekNumbers |
weekNumbers:
|
Type : boolean
|
Optional |
Enables display of week numbers in calendar. |
wrap |
wrap:
|
Type : boolean
|
Optional |
Custom elements and input groups. |