Class sap.ui.unified.calendar.MonthModule: sap/ui/unified/calendar/Month

extends Control
known direct subclasses: DatesRow

renders a month 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.28.0.
Constructor Summary
new sap.ui.unified.calendar.Month(sId?, mSettings?)Constructor for a new calendar/Month.
Event Summary
focus(oControlEvent)Date focus changed
select(oControlEvent)Date selection changed
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.unified.calendar.Month.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.unified.calendar.Month with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.unified.calendar.Month.getMetadata()Returns a metadata object for class sap.ui.unified.calendar.Month.
addAriaLabelledBy(vAriaLabelledBy)Adds some ariaLabelledBy into the association ariaLabelledBy.
addDisabledDate(oDisabledDate)Adds some disabledDate to the aggregation disabledDates.
addSelectedDate(oSelectedDate)Adds some selectedDate to the aggregation selectedDates.
addSpecialDate(oSpecialDate)Adds some specialDate to the aggregation specialDates.
attachFocus(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the focus event of this sap.ui.unified.calendar.Month.
attachSelect(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the select event of this sap.ui.unified.calendar.Month.
checkDateFocusable(oDate)checks if a date is focusable in the current rendered output.
destroyDisabledDates()Destroys all the disabledDates in the aggregation disabledDates.
destroySelectedDates()Destroys all the selectedDates in the aggregation selectedDates.
destroySpecialDates()Destroys all the specialDates in the aggregation specialDates.
detachFocus(fnFunction, oListener)Detaches event handler fnFunction from the focus event of this sap.ui.unified.calendar.Month.
detachSelect(fnFunction, oListener)Detaches event handler fnFunction from the select event of this sap.ui.unified.calendar.Month.
displayDate(oDate)displays the month of a given date without setting the focus
fireFocus(mArguments?)Fires event focus to attached listeners.
fireSelect(mArguments?)Fires event select to attached listeners.
getAriaLabelledBy()Returns array of IDs of the elements which are the current targets of the association ariaLabelledBy.
getDate()Gets current value of property date.
getDisabledDates()Gets content of aggregation disabledDates.
getFirstDayOfWeek()Gets current value of property firstDayOfWeek.
getIntervalSelection()Gets current value of property intervalSelection.
getLegend()ID of the element which is the current target of the association legend, or null.
getNonWorkingDays()Gets current value of property nonWorkingDays.
getPrimaryCalendarType()Gets current value of property primaryCalendarType.
getSecondaryCalendarType()Gets current value of property secondaryCalendarType.
getSelectedDates()Gets content of aggregation selectedDates.
getShowHeader()Gets current value of property showHeader.
getSingleSelection()Gets current value of property singleSelection.
getSpecialDates()Gets content of aggregation specialDates.
getWidth()Gets current value of property width.
indexOfDisabledDate(oDisabledDate)Checks for the provided sap.ui.unified.DateRange in the aggregation disabledDates.
indexOfSelectedDate(oSelectedDate)Checks for the provided sap.ui.unified.DateRange in the aggregation selectedDates.
indexOfSpecialDate(oSpecialDate)Checks for the provided sap.ui.unified.DateTypeRange in the aggregation specialDates.
insertDisabledDate(oDisabledDate, iIndex)Inserts a disabledDate into the aggregation disabledDates.
insertSelectedDate(oSelectedDate, iIndex)Inserts a selectedDate into the aggregation selectedDates.
insertSpecialDate(oSpecialDate, iIndex)Inserts a specialDate into the aggregation specialDates.
removeAllAriaLabelledBy()Removes all the controls in the association named ariaLabelledBy.
removeAllDisabledDates()Removes all the controls from the aggregation disabledDates.
removeAllSelectedDates()Removes all the controls from the aggregation selectedDates.
removeAllSpecialDates()Removes all the controls from the aggregation specialDates.
removeAriaLabelledBy(vAriaLabelledBy)Removes an ariaLabelledBy from the association named ariaLabelledBy.
removeDisabledDate(vDisabledDate)Removes a disabledDate from the aggregation disabledDates.
removeSelectedDate(vSelectedDate)Removes a selectedDate from the aggregation selectedDates.
removeSpecialDate(vSpecialDate)Removes a specialDate from the aggregation specialDates.
setDate(oDate)Sets a new value for property date.
setFirstDayOfWeek(iFirstDayOfWeek)Sets a new value for property firstDayOfWeek.
setIntervalSelection(bIntervalSelection)Sets a new value for property intervalSelection.
setLegend(oLegend)Sets the associated legend.
setNonWorkingDays(sNonWorkingDays)Sets a new value for property nonWorkingDays.
setPrimaryCalendarType(sPrimaryCalendarType)Sets a new value for property primaryCalendarType.
setSecondaryCalendarType(sSecondaryCalendarType)Sets a new value for property secondaryCalendarType.
setShowHeader(bShowHeader)Sets a new value for property showHeader.
setSingleSelection(bSingleSelection)Sets a new value for property singleSelection.
setWidth(sWidth)Sets a new value for property width.
Constructor Detail
new sap.ui.unified.calendar.Month(sId?, mSettings?)
Constructor for a new calendar/Month.

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.core.Control 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
Event Detail
focus(oControlEvent)
Date focus changed
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
{object}oControlEvent.getParameters.date focused date
{boolean}oControlEvent.getParameters.otherMonth focused date is in an other month that the displayed one
{boolean}oControlEvent.getParameters.restoreOldDate focused date is set to the same as before (date in other month clicked)
select(oControlEvent)
Date selection changed
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Method Detail
sap.ui.unified.calendar.Month.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.unified.calendar.Month 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.core.Control.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.Month.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.unified.calendar.Month.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
addAriaLabelledBy(vAriaLabelledBy): sap.ui.unified.calendar.Month
Adds some ariaLabelledBy into the association ariaLabelledBy.
Parameters:
{string|sap.ui.core.Control}vAriaLabelledBy the ariaLabelledBy to add; if empty, nothing is inserted
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
addDisabledDate(oDisabledDate): sap.ui.unified.calendar.Month
Adds some disabledDate to the aggregation disabledDates.
Parameters:
{sap.ui.unified.DateRange}oDisabledDate the disabledDate to add; if empty, nothing is inserted
Since:
1.38.0
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
addSelectedDate(oSelectedDate): sap.ui.unified.calendar.Month
Adds some selectedDate to the aggregation selectedDates.
Parameters:
{sap.ui.unified.DateRange}oSelectedDate the selectedDate to add; if empty, nothing is inserted
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
addSpecialDate(oSpecialDate): sap.ui.unified.calendar.Month
Adds some specialDate to the aggregation specialDates.
Parameters:
{sap.ui.unified.DateTypeRange}oSpecialDate the specialDate to add; if empty, nothing is inserted
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
attachFocus(oData?, fnFunction, oListener?): sap.ui.unified.calendar.Month
Attaches event handler fnFunction to the focus event of this sap.ui.unified.calendar.Month.

When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.unified.calendar.Month itself.

Date focus changed

Parameters:
{object}oData? An application-specific payload object that will be passed to the event handler along with the event object when firing the event
{function}fnFunction The function to be called when the event occurs
{object}oListener? Context object to call the event handler with. Defaults to this sap.ui.unified.calendar.Month itself
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
attachSelect(oData?, fnFunction, oListener?): sap.ui.unified.calendar.Month
Attaches event handler fnFunction to the select event of this sap.ui.unified.calendar.Month.

When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.unified.calendar.Month itself.

Date selection changed

Parameters:
{object}oData? An application-specific payload object that will be passed to the event handler along with the event object when firing the event
{function}fnFunction The function to be called when the event occurs
{object}oListener? Context object to call the event handler with. Defaults to this sap.ui.unified.calendar.Month itself
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
checkDateFocusable(oDate): boolean
checks if a date is focusable in the current rendered output. So if not rendered or in other month it is not focusable.
Parameters:
{object}oDate JavaScript date object for focused date.
Returns:
{boolean} flag if focusable
destroyDisabledDates(): sap.ui.unified.calendar.Month
Destroys all the disabledDates in the aggregation disabledDates.
Since:
1.38.0
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
destroySelectedDates(): sap.ui.unified.calendar.Month
Destroys all the selectedDates in the aggregation selectedDates.
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
destroySpecialDates(): sap.ui.unified.calendar.Month
Destroys all the specialDates in the aggregation specialDates.
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
detachFocus(fnFunction, oListener): sap.ui.unified.calendar.Month
Detaches event handler fnFunction from the focus event of this sap.ui.unified.calendar.Month.

The passed function and listener object must match the ones used for event registration.

Parameters:
{function}fnFunction The function to be called, when the event occurs
{object}oListener Context object on which the given function had to be called
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
detachSelect(fnFunction, oListener): sap.ui.unified.calendar.Month
Detaches event handler fnFunction from the select event of this sap.ui.unified.calendar.Month.

The passed function and listener object must match the ones used for event registration.

Parameters:
{function}fnFunction The function to be called, when the event occurs
{object}oListener Context object on which the given function had to be called
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
displayDate(oDate): sap.ui.unified.calendar.Month
displays the month of a given date without setting the focus
Parameters:
{object}oDate JavaScript date object for focused date.
Returns:
{sap.ui.unified.calendar.Month}this to allow method chaining
fireFocus(mArguments?): sap.ui.unified.calendar.Month
Fires event focus to attached listeners.

Expects the following event parameters:

  • date of type objectfocused date
  • otherMonth of type booleanfocused date is in an other month that the displayed one
  • restoreOldDate of type booleanfocused date is set to the same as before (date in other month clicked)
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
fireSelect(mArguments?): sap.ui.unified.calendar.Month
Fires event select to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
getAriaLabelledBy(): sap.ui.core.Control[]
Returns array of IDs of the elements which are the current targets of the association ariaLabelledBy.
Returns:
{sap.ui.core.Control[]}
getDate(): object
Gets current value of property date.

the month including this date is rendered and this date is initial focused (if no other focus set)

Returns:
{object} Value of property date
getDisabledDates(): sap.ui.unified.DateRange[]
Gets content of aggregation disabledDates.

Date Ranges for disabled dates

Since:
1.38.0
Returns:
{sap.ui.unified.DateRange[]}
getFirstDayOfWeek(): int
Gets current value of property firstDayOfWeek.

If set, the first day of the displayed week is this day. Valid values are 0 to 6. If not a valid value is set, the default of the used locale is used.

Default value is -1.

Since:
1.28.9
Returns:
{int} Value of property firstDayOfWeek
getIntervalSelection(): boolean
Gets current value of property intervalSelection.

If set, interval selection is allowed

Default value is false.

Returns:
{boolean} Value of property intervalSelection
ID of the element which is the current target of the association legend, or null.
Since:
1.38.5
Returns:
{sap.ui.unified.CalendarLegend}
getNonWorkingDays(): int[]
Gets current value of property nonWorkingDays.

If set, the provided weekdays are displayed as non-working days. Valid values inside the array are 0 to 6. If not set, the weekend defined in the locale settings is displayed as non-working days.

Since:
1.28.9
Returns:
{int[]} Value of property nonWorkingDays
getPrimaryCalendarType(): sap.ui.core.CalendarType
Gets current value of property primaryCalendarType.

If set, the calendar type is used for display. If not set, the calendar type of the global configuration is used.

Since:
1.34.0
Returns:
{sap.ui.core.CalendarType} Value of property primaryCalendarType
getSecondaryCalendarType(): sap.ui.core.CalendarType
Gets current value of property secondaryCalendarType.

If set, the days are also displayed in this calendar type If not set, the dates are only displayed in the primary calendar type

Since:
1.34.0
Returns:
{sap.ui.core.CalendarType} Value of property secondaryCalendarType
getSelectedDates(): sap.ui.unified.DateRange[]
Gets content of aggregation selectedDates.

Date Ranges for selected dates of the DatePicker

Returns:
{sap.ui.unified.DateRange[]}
getShowHeader(): boolean
Gets current value of property showHeader.

If set, a header with the month name is shown

Default value is false.

Returns:
{boolean} Value of property showHeader
getSingleSelection(): boolean
Gets current value of property singleSelection.

If set, only a single date or interval, if intervalSelection is enabled, can be selected

Default value is true.

Returns:
{boolean} Value of property singleSelection
getSpecialDates(): sap.ui.unified.DateTypeRange[]
Gets content of aggregation specialDates.

Date Range with type to visualize special days in the Calendar. If one day is assigned to more than one Type, only the first one will be used.

Returns:
{sap.ui.unified.DateTypeRange[]}
getWidth(): sap.ui.core.CSSSize
Gets current value of property width.

Width of Month

Since:
1.38.0
Returns:
{sap.ui.core.CSSSize} Value of property width
indexOfDisabledDate(oDisabledDate): int
Checks for the provided sap.ui.unified.DateRange in the aggregation disabledDates. and returns its index if found or -1 otherwise.
Parameters:
{sap.ui.unified.DateRange}oDisabledDate The disabledDate whose index is looked for
Since:
1.38.0
Returns:
{int} The index of the provided control in the aggregation if found, or -1 otherwise
indexOfSelectedDate(oSelectedDate): int
Checks for the provided sap.ui.unified.DateRange in the aggregation selectedDates. and returns its index if found or -1 otherwise.
Parameters:
{sap.ui.unified.DateRange}oSelectedDate The selectedDate whose index is looked for
Returns:
{int} The index of the provided control in the aggregation if found, or -1 otherwise
indexOfSpecialDate(oSpecialDate): int
Checks for the provided sap.ui.unified.DateTypeRange in the aggregation specialDates. and returns its index if found or -1 otherwise.
Parameters:
{sap.ui.unified.DateTypeRange}oSpecialDate The specialDate whose index is looked for
Returns:
{int} The index of the provided control in the aggregation if found, or -1 otherwise
insertDisabledDate(oDisabledDate, iIndex): sap.ui.unified.calendar.Month
Inserts a disabledDate into the aggregation disabledDates.
Parameters:
{sap.ui.unified.DateRange}oDisabledDate the disabledDate to insert; if empty, nothing is inserted
{int}iIndex the 0-based index the disabledDate should be inserted at; for a negative value of iIndex, the disabledDate is inserted at position 0; for a value greater than the current size of the aggregation, the disabledDate is inserted at the last position
Since:
1.38.0
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
insertSelectedDate(oSelectedDate, iIndex): sap.ui.unified.calendar.Month
Inserts a selectedDate into the aggregation selectedDates.
Parameters:
{sap.ui.unified.DateRange}oSelectedDate the selectedDate to insert; if empty, nothing is inserted
{int}iIndex the 0-based index the selectedDate should be inserted at; for a negative value of iIndex, the selectedDate is inserted at position 0; for a value greater than the current size of the aggregation, the selectedDate is inserted at the last position
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
insertSpecialDate(oSpecialDate, iIndex): sap.ui.unified.calendar.Month
Inserts a specialDate into the aggregation specialDates.
Parameters:
{sap.ui.unified.DateTypeRange}oSpecialDate the specialDate to insert; if empty, nothing is inserted
{int}iIndex the 0-based index the specialDate should be inserted at; for a negative value of iIndex, the specialDate is inserted at position 0; for a value greater than the current size of the aggregation, the specialDate is inserted at the last position
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
removeAllAriaLabelledBy(): sap.ui.core.Control[]
Removes all the controls in the association named ariaLabelledBy.
Returns:
{sap.ui.core.Control[]} An array of the removed elements (might be empty)
removeAllDisabledDates(): sap.ui.unified.DateRange[]
Removes all the controls from the aggregation disabledDates.

Additionally, it unregisters them from the hosting UIArea.

Since:
1.38.0
Returns:
{sap.ui.unified.DateRange[]} An array of the removed elements (might be empty)
removeAllSelectedDates(): sap.ui.unified.DateRange[]
Removes all the controls from the aggregation selectedDates.

Additionally, it unregisters them from the hosting UIArea.

Returns:
{sap.ui.unified.DateRange[]} An array of the removed elements (might be empty)
removeAllSpecialDates(): sap.ui.unified.DateTypeRange[]
Removes all the controls from the aggregation specialDates.

Additionally, it unregisters them from the hosting UIArea.

Returns:
{sap.ui.unified.DateTypeRange[]} An array of the removed elements (might be empty)
removeAriaLabelledBy(vAriaLabelledBy): sap.ui.core.Control
Removes an ariaLabelledBy from the association named ariaLabelledBy.
Parameters:
{int|string|sap.ui.core.Control}vAriaLabelledBy The ariaLabelledByto be removed or its index or ID
Returns:
{sap.ui.core.Control} the removed ariaLabelledBy or null
removeDisabledDate(vDisabledDate): sap.ui.unified.DateRange
Removes a disabledDate from the aggregation disabledDates.
Parameters:
{int|string|sap.ui.unified.DateRange}vDisabledDate The disabledDateto remove or its index or id
Since:
1.38.0
Returns:
{sap.ui.unified.DateRange} The removed disabledDate or null
removeSelectedDate(vSelectedDate): sap.ui.unified.DateRange
Removes a selectedDate from the aggregation selectedDates.
Parameters:
{int|string|sap.ui.unified.DateRange}vSelectedDate The selectedDateto remove or its index or id
Returns:
{sap.ui.unified.DateRange} The removed selectedDate or null
removeSpecialDate(vSpecialDate): sap.ui.unified.DateTypeRange
Removes a specialDate from the aggregation specialDates.
Parameters:
{int|string|sap.ui.unified.DateTypeRange}vSpecialDate The specialDateto remove or its index or id
Returns:
{sap.ui.unified.DateTypeRange} The removed specialDate or null
Sets a new value for property date.

the month including this date is rendered and this date is initial focused (if no other focus set)

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{object}oDate New value for property date
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
setFirstDayOfWeek(iFirstDayOfWeek): sap.ui.unified.calendar.Month
Sets a new value for property firstDayOfWeek.

If set, the first day of the displayed week is this day. Valid values are 0 to 6. If not a valid value is set, the default of the used locale is used.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is -1.

Parameters:
{int}iFirstDayOfWeek New value for property firstDayOfWeek
Since:
1.28.9
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
setIntervalSelection(bIntervalSelection): sap.ui.unified.calendar.Month
Sets a new value for property intervalSelection.

If set, interval selection is allowed

When called with a value of null or undefined, the default value of the property will be restored.

Default value is false.

Parameters:
{boolean}bIntervalSelection New value for property intervalSelection
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
setLegend(oLegend): sap.ui.unified.calendar.Month
Sets the associated legend.
Parameters:
{sap.ui.unified.CalendarLegend}oLegend Id of an element which becomes the new target of this legend association; alternatively, an element instance may be given
Since:
1.38.5
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
setNonWorkingDays(sNonWorkingDays): sap.ui.unified.calendar.Month
Sets a new value for property nonWorkingDays.

If set, the provided weekdays are displayed as non-working days. Valid values inside the array are 0 to 6. If not set, the weekend defined in the locale settings is displayed as non-working days.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{int[]}sNonWorkingDays New value for property nonWorkingDays
Since:
1.28.9
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
setPrimaryCalendarType(sPrimaryCalendarType): sap.ui.unified.calendar.Month
Sets a new value for property primaryCalendarType.

If set, the calendar type is used for display. If not set, the calendar type of the global configuration is used.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{sap.ui.core.CalendarType}sPrimaryCalendarType New value for property primaryCalendarType
Since:
1.34.0
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
setSecondaryCalendarType(sSecondaryCalendarType): sap.ui.unified.calendar.Month
Sets a new value for property secondaryCalendarType.

If set, the days are also displayed in this calendar type If not set, the dates are only displayed in the primary calendar type

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{sap.ui.core.CalendarType}sSecondaryCalendarType New value for property secondaryCalendarType
Since:
1.34.0
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
setShowHeader(bShowHeader): sap.ui.unified.calendar.Month
Sets a new value for property showHeader.

If set, a header with the month name is shown

When called with a value of null or undefined, the default value of the property will be restored.

Default value is false.

Parameters:
{boolean}bShowHeader New value for property showHeader
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
setSingleSelection(bSingleSelection): sap.ui.unified.calendar.Month
Sets a new value for property singleSelection.

If set, only a single date or interval, if intervalSelection is enabled, can be selected

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Parameters:
{boolean}bSingleSelection New value for property singleSelection
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining
Sets a new value for property width.

Width of Month

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{sap.ui.core.CSSSize}sWidth New value for property width
Since:
1.38.0
Returns:
{sap.ui.unified.calendar.Month} Reference to this in order to allow method chaining