Class sap.ui.unified.calendar.DatesRowModule: sap/ui/unified/calendar/DatesRow

extends Month

renders a row of days with ItemNavigation This is used inside the calendar. Not for stand alone usage If used inside the calendar the properties and aggregation are directly taken from the parent (To not duplicate and sync DateRanges and so on...)


Since: 1.30.0.
Constructor Summary
new sap.ui.unified.calendar.DatesRow(sId?, mSettings?)Constructor for a new calendar/DatesRow.
Events borrowed from class sap.ui.unified.calendar.Month
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.unified.calendar.DatesRow.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.unified.calendar.DatesRow with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.unified.calendar.DatesRow.getMetadata()Returns a metadata object for class sap.ui.unified.calendar.DatesRow.
displayDate(oDate)displays the a given date without setting the focus

Property date date to be focused or displayed.

getDays()Gets current value of property days.
getShowDayNamesLine()Gets current value of property showDayNamesLine.
getStartDate()Gets current value of property startDate.
setDate(oDate)Setter for property date.
setDays(iDays)Sets a new value for property days.
setFirstDayOfWeek(iFirstDayOfWeek?)Setter for property firstDayOfWeek.
setShowDayNamesLine(bShowDayNamesLine)Sets a new value for property showDayNamesLine.
setStartDate(oStartDate)Sets a new value for property startDate.
Constructor Detail
new sap.ui.unified.calendar.DatesRow(sId?, mSettings?)
Constructor for a new calendar/DatesRow.

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.Month 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.calendar.DatesRow.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.unified.calendar.DatesRow 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.Month.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.calendar.DatesRow.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.unified.calendar.DatesRow.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
displays the a given date without setting the focus

Property date date to be focused or displayed. It must be in the displayed date range beginning with startDate and days days So set this properties before setting the date.

Parameters:
{object}oDate JavaScript date object for focused date.
Returns:
{sap.ui.unified.calendar.DatesRow}this to allow method chaining
getDays(): int
Gets current value of property days.

number of days displayed

Default value is 7.

Returns:
{int} Value of property days
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
getStartDate(): object
Gets current value of property startDate.

Start date of the row If in rendering phase the date property is not in the range startDate + days, it is set to the start date So after setting the start date the date should be set to be in the range of the start date

Returns:
{object} Value of property startDate
Setter for property date.

Property date date to be focused or displayed. It must be in the displayed date range beginning with startDate and days days So set this properties before setting the date.

Parameters:
{object}oDate JavaScript date object for start date.
Returns:
{sap.ui.unified.calendar.DatesRow}this to allow method chaining
Sets a new value for property days.

number of days displayed

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.calendar.DatesRow} Reference to this in order to allow method chaining
setFirstDayOfWeek(iFirstDayOfWeek?)
Setter for property firstDayOfWeek.

Property firstDayOfWeek is not supported in sap.ui.unified.calendar.DatesRow control.

Parameters:
{int}iFirstDayOfWeek? first day of the week
setShowDayNamesLine(bShowDayNamesLine): sap.ui.unified.calendar.DatesRow
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.calendar.DatesRow} Reference to this in order to allow method chaining
setStartDate(oStartDate): sap.ui.unified.calendar.DatesRow
Sets a new value for property startDate.

Start date of the row If in rendering phase the date property is not in the range startDate + days, it is set to the start date So after setting the start date the date should be set to be in the range of the start date

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.calendar.DatesRow} Reference to this in order to allow method chaining