new ClassConfig()
Overwrite by option passed to plugin
//persiandate.github.io/PersianWebToolkit/doc/datepicker/0.3.5/
Members
-
<static> altField :boolean
-
altField
Type:
- boolean
-
<static> altFormat :string
-
altField
Type:
- string
-
<static> autoClose :boolean
-
If true picker close When Select day
Type:
- boolean
-
<static> dayPicker :object
-
dayPicker config object
Type:
- object
- Source:
- See:
Properties:
Name Type Description dayPicker -
<static> format :boolean
-
format
Type:
- boolean
-
<static> inputDelay :number
-
inputDelay
Type:
- number
-
<static> justSelectOnDate :boolean
-
if true date select just by click on day in month grid
Type:
- boolean
-
<static> maxDate :boolean
-
set max date on datepicker
Type:
- boolean
-
<static> minDate :boolean
-
set min date on datepicker
Type:
- boolean
-
<static> monthPicker :object
-
monthPicker config object
Type:
- object
- Source:
- See:
Properties:
Name Type Description monthPicker -
<static> navigator :object
-
navigator config object
Type:
- object
- Default Value:
- true
- Source:
- See:
Properties:
Name Type Description navigator -
<static> observer :boolean
-
observer
Type:
- boolean
-
<static> onlyTimePicker :boolean
-
if true all pickers hide and just shpw timepicker
Type:
- boolean
-
<static> persianDigit :boolean
-
if true all digit convert to persian digit.
Type:
- boolean
-
<static> position :string|Array
-
[x,y] , define a position of datepicker relative to input element.
Type:
- string | Array
-
<static> timePicker :object
-
timepicker config object
Type:
- object
- Source:
- See:
Properties:
Name Type Description timePicker -
<static> toolbox :object
-
toolbox config object
Type:
- object
- Deprecated:
- 0.2.3
- Default Value:
- true
- Source:
- See:
Properties:
Name Type Description toolbox -
<static> viewMode :string
-
Acceptable value : day,month,year
Type:
- string
-
<static> yearPicker :object
-
yearPicker config object
Type:
- object
- Source:
- See:
Properties:
Name Type Description yearPicker
Methods
-
<static> altFieldFormatter(unixDate) → {*}
-
format value of 'altField' input
Parameters:
Name Type Description unixDateReturns:
- Type
- *
-
<static> checkDate()
-
check date avalibility
-
<static> checkMonth()
-
check month avalibility
-
<static> checkYear()
-
check year avalibility
-
<static> destroy(self)
-
Removes the datepicker functionality completely.
Parameters:
Name Type Description self -
<static> formatter(unixDate) → {*}
-
format value of input
Parameters:
Name Type Description unixDateReturns:
- Type
- *
-
<static> hide() → {ClassConfig}
-
Hide the date picker
Returns:
- Type
- ClassConfig
-
<static> show() → {ClassConfig}
-
Open the date picker.
Returns:
- Type
- ClassConfig
Events
-
onHide
-
A function that takes current datepicker instance. It is called just before the datepicker Hide.
Parameters:
Name Type Description self -
onSelect
-
A function that takes current datepicker unixDate. It is called When Day Select.
Parameters:
Name Type Description unixDate -
onShow
-
A function that takes current datepicker instance. It is called just before the datepicker is displayed.
Parameters:
Name Type Description self