Class sap.ui.unified.CalendarDateIntervalModule: sap/ui/unified/CalendarDateInterval

extends Calendar

Calendar with dates displayed in one line.


Since: 1.30.0.
Constructor Summary
new sap.ui.unified.CalendarDateInterval(sId?, mSettings?)Constructor for a new CalendarDateInterval.
Events borrowed from class sap.ui.core.Control
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.
sap.ui.unified.CalendarDateInterval.getMetadata()Returns a metadata object for class sap.ui.unified.CalendarDateInterval.
getDays()Gets current value of property days.
getPickerPopup()Gets current value of property pickerPopup.
getShowDayNamesLine()Gets current value of property showDayNamesLine.
setDays(iDays)Sets a new value for property days.
setFirstDayOfWeek(iFirstDayOfWeek?)Setter for property firstDayOfWeek.
setMonths(iMonths?)Setter for property months.
setPickerPopup(bPickerPopup)Sets a new value for property pickerPopup.
setShowDayNamesLine(bShowDayNamesLine)Sets a new value for property showDayNamesLine.
setStartDate(oStartDate)Sets a new value for property startDate.
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
sap.ui.unified.CalendarDateInterval.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.unified.CalendarDateInterval.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
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:
{sap.ui.unified.CalendarDateInterval} Reference to this in order to allow method chaining
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:
{int}iMonths? months
setPickerPopup(bPickerPopup): sap.ui.unified.CalendarDateInterval
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:
{sap.ui.unified.CalendarDateInterval} Reference to this in order to allow method chaining
setShowDayNamesLine(bShowDayNamesLine): sap.ui.unified.CalendarDateInterval
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:
{sap.ui.unified.CalendarDateInterval} Reference to this in order to allow method chaining
setStartDate(oStartDate): sap.ui.unified.CalendarDateInterval
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:
{sap.ui.unified.CalendarDateInterval} Reference to this in order to allow method chaining