Calendar with dates displayed in one line.
Since: 1.30.0.
Method Summary
sap.ui.unified.CalendarDateInterval.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.unified.CalendarDateInterval with name sClassName
and enriches it with the information contained in oClassInfo
. getDays()Gets current value of property days
. setDays(iDays)Sets a new value for property days
. setMonths(iMonths?)Setter for property months
. setPickerPopup(bPickerPopup)Sets a new value for property pickerPopup
. setStartDate(oStartDate)Sets a new value for property startDate
. addAriaLabelledBy,
addDisabledDate,
addSelectedDate,
addSpecialDate,
attachCancel,
attachSelect,
attachStartDateChange,
destroyDisabledDates,
destroySelectedDates,
destroySpecialDates,
detachCancel,
detachSelect,
detachStartDateChange,
displayDate,
fireCancel,
fireSelect,
fireStartDateChange,
focusDate,
getAriaLabelledBy,
getDisabledDates,
getFirstDayOfWeek,
getIntervalSelection,
getLegend,
getMaxDate,
getMinDate,
getMonths,
getNonWorkingDays,
getPrimaryCalendarType,
getSecondaryCalendarType,
getSelectedDates,
getSingleSelection,
getSpecialDates,
getWidth,
indexOfDisabledDate,
indexOfSelectedDate,
indexOfSpecialDate,
insertDisabledDate,
insertSelectedDate,
insertSpecialDate,
removeAllAriaLabelledBy,
removeAllDisabledDates,
removeAllSelectedDates,
removeAllSpecialDates,
removeAriaLabelledBy,
removeDisabledDate,
removeSelectedDate,
removeSpecialDate,
setIntervalSelection,
setLegend,
setMaxDate,
setMinDate,
setNonWorkingDays,
setPrimaryCalendarType,
setSecondaryCalendarType,
setSingleSelection,
setWidth addStyleClass,
allowTextSelection,
attachBrowserEvent,
attachValidateFieldGroup,
checkFieldGroupIds,
clone,
detachBrowserEvent,
detachValidateFieldGroup,
fireValidateFieldGroup,
getAccessibilityInfo,
getBusy,
getBusyIndicatorDelay,
getControlsByFieldGroupId,
getFieldGroupIds,
getIdForLabel,
getRenderer,
getVisible,
hasStyleClass,
invalidate,
isBusy,
onAfterRendering,
onBeforeRendering,
placeAt,
removeStyleClass,
rerender,
setBusy,
setBusyIndicatorDelay,
setFieldGroupIds,
setVisible,
toggleStyleClass,
triggerValidateFieldGroup $,
addCustomData,
addDependent,
addEventDelegate,
applyFocusInfo,
bindElement,
data,
destroy,
destroyCustomData,
destroyDependents,
destroyLayoutData,
destroyTooltip,
enhanceAccessibilityState,
exit,
findElements,
fireEvent,
focus,
getCustomData,
getDependents,
getDomRef,
getElementBinding,
getFocusDomRef,
getFocusInfo,
getInterface,
getLayoutData,
getMetadata,
getTooltip,
getTooltip_AsString,
getTooltip_Text,
indexOfCustomData,
indexOfDependent,
init,
insertCustomData,
insertDependent,
prop,
removeAllCustomData,
removeAllDependents,
removeCustomData,
removeDependent,
removeEventDelegate,
setLayoutData,
setTooltip,
toString,
unbindElement addAggregation,
addAssociation,
applySettings,
attachFormatError,
attachModelContextChange,
attachParseError,
attachValidationError,
attachValidationSuccess,
bindAggregation,
bindContext,
bindObject,
bindProperty,
destroyAggregation,
detachFormatError,
detachModelContextChange,
detachParseError,
detachValidationError,
detachValidationSuccess,
findAggregatedObjects,
fireFormatError,
fireModelContextChange,
fireParseError,
fireValidationError,
fireValidationSuccess,
getAggregation,
getAssociation,
getBinding,
getBindingContext,
getBindingInfo,
getBindingPath,
getEventingParent,
getId,
getModel,
getObjectBinding,
getOriginInfo,
getParent,
getProperty,
hasModel,
indexOfAggregation,
insertAggregation,
isBound,
isInvalidateSuppressed,
isTreeBinding,
propagateMessages,
removeAggregation,
removeAllAggregation,
removeAllAssociation,
removeAssociation,
setAggregation,
setAssociation,
setBindingContext,
setModel,
setProperty,
unbindAggregation,
unbindContext,
unbindObject,
unbindProperty,
validateAggregation,
validateProperty Constructor Detail
new sap.ui.unified.CalendarDateInterval(sId?, mSettings?)
Constructor for a new
CalendarDateInterval
.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
In addition, all settings applicable to the base type sap.ui.unified.Calendar can be used as well.
Parameters:
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
Method Detail
sap.ui.unified.CalendarDateInterval.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.unified.CalendarDateInterval with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.unified.Calendar.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.ui.unified.CalendarDateInterval.
Returns:
getDays(): int
Gets current value of property
days
.
number of days displayed on phones the maximum rendered number of days is 8.
Default value is 7
.
Returns:
{int} | Value of property days |
getPickerPopup(): boolean
Gets current value of property
pickerPopup
.
If set, the month- and yearPicker opens on a popup
Default value is false
.
- Since:
- 1.34.0
Returns:
{boolean} | Value of property pickerPopup |
getShowDayNamesLine(): boolean
Gets current value of property
showDayNamesLine
.
If set the day names are shown in a separate line. If not set the day names are shown inside the single days.
Default value is true
.
- Since:
- 1.34.0
Returns:
{boolean} | Value of property showDayNamesLine |
Sets a new value for property
days
.
number of days displayed on phones the maximum rendered number of days is 8.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 7
.
Parameters:
{int} | iDays | New value for property days |
Returns:
setFirstDayOfWeek(iFirstDayOfWeek?)
Setter for property
firstDayOfWeek
.
Property firstDayOfWeek
is not supported in sap.ui.unified.CalendarDateInterval
control.
Parameters:
{int} | iFirstDayOfWeek? | first day of the week |
setMonths(iMonths?)
Setter for property
months
.
Property months
is not supported in sap.ui.unified.CalendarDateInterval
control.
Parameters:
Sets a new value for property
pickerPopup
.
If set, the month- and yearPicker opens on a popup
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bPickerPopup | New value for property pickerPopup |
- Since:
- 1.34.0
Returns:
Sets a new value for property
showDayNamesLine
.
If set the day names are shown in a separate line. If not set the day names are shown inside the single days.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowDayNamesLine | New value for property showDayNamesLine |
- Since:
- 1.34.0
Returns:
Sets a new value for property
startDate
.
Start date of the Interval
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{object} | oStartDate | New value for property startDate |
Returns: