A.DatePickerBase Class
A base class for DatePickerBase.
Constructor
A.DatePickerBase
-
config
Parameters:
-
configObjectObject literal specifying widget configuration properties.
Index
Methods
Methods
_afterCalendarDateClick
()
protected
Fires after a click in the Calendar date.
_afterCalendarSelectionChange
-
event
Fires after a selection change in the Calendar.
Parameters:
-
eventObject
_afterDatePickerSelectionChange
()
protected
Fires when a selection change in the DatePicker.
_isSameDay
-
date1 -
date2
Checks if the given dates are referencing the same day, month and year.
Parameters:
-
date1Object -
date2Object
_onceUserInteractionRelease
-
event
Fires when the user's first interaction happens.
Parameters:
-
eventObject
_setCalendar
-
val
Sets the calendar value by merging its object with another properties.
Parameters:
-
valObject
_setCalendarToFirstSelectedDate
()
protected
Sets the first selected date in the Calendar.
_setPanes
-
val
Sets the pane value between 1 and 3.
Parameters:
-
valObject
Returns:
Clamped number of panes.
clearSelection
-
silent
Clears a selection in the Calendar.
Parameters:
-
silentObject
deselectDates
-
dates
Deselects a date in the Calendar.
Parameters:
-
datesObject
getCalendar
()
Calendar
Returns an existent Calendar instance or creates a new one if it
doesn't exists.
Returns:
initializer
()
protected
Construction logic executed during DatePickerBase instantiation.
Lifecycle.
selectDates
-
dates
Selects a date in the Calendar.
Parameters:
-
datesObject
selectDatesFromInputValue
-
dates
Selects dates in the 'Calendar' while only allowing the calendar to fire 'selectionChange' once.
Parameters:
-
datesObject
useInputNode
-
node
Renders the widget in an <input> node.
Parameters:
-
nodeObject
Properties
ATTRS
Object
static
Static property used to define the default attribute configuration for the
DatePickerBase.
PANES
Array
static
Lists CalendarBase pane templates.