Class sap.m.ResponsivePopoverModule: sap/m/ResponsivePopover

extends Control

This control acts responsively to the type of device. It acts as a sap.m.Popover on desktop and tablet, while on phone it acts as a sap.m.Dialog with stretch set to true.


Since: 1.15.1.
Constructor Summary
new sap.m.ResponsivePopover(sId?, mSettings?)Constructor for a new ResponsivePopover.
Event Summary
afterClose(oControlEvent)Event is fired after popover or dialog is closed.
afterOpen(oControlEvent)Event is fired after popover or dialog is open.
beforeClose(oControlEvent)Event is fired before popover or dialog is closed.
beforeOpen(oControlEvent)Event is fired before popover or dialog is open.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.m.ResponsivePopover.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.ResponsivePopover with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.ResponsivePopover.getMetadata()Returns a metadata object for class sap.m.ResponsivePopover.
addAriaDescribedBy(vAriaDescribedBy)Adds some ariaDescribedBy into the association ariaDescribedBy.
addContent(oControl)Adds content to the ResponsivePopover
attachAfterClose(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the afterClose event of this sap.m.ResponsivePopover.
attachAfterOpen(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the afterOpen event of this sap.m.ResponsivePopover.
attachBeforeClose(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the beforeClose event of this sap.m.ResponsivePopover.
attachBeforeOpen(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the beforeOpen event of this sap.m.ResponsivePopover.
clone()Creates a new instance of ResponsivePopover with the same settings as the ResponsivePopover on which the method is called
close()Closes the ResponsivePopover.
destroyBeginButton()Destroys the beginButton in the aggregation beginButton.
destroyContent()Destroys all the content in the aggregation content.
destroyCustomHeader()Destroys the customHeader in the aggregation customHeader.
destroyEndButton()Destroys the endButton in the aggregation endButton.
destroySubHeader()Destroys the subHeader in the aggregation subHeader.
detachAfterClose(fnFunction, oListener)Detaches event handler fnFunction from the afterClose event of this sap.m.ResponsivePopover.
detachAfterOpen(fnFunction, oListener)Detaches event handler fnFunction from the afterOpen event of this sap.m.ResponsivePopover.
detachBeforeClose(fnFunction, oListener)Detaches event handler fnFunction from the beforeClose event of this sap.m.ResponsivePopover.
detachBeforeOpen(fnFunction, oListener)Detaches event handler fnFunction from the beforeOpen event of this sap.m.ResponsivePopover.
fireAfterClose(mArguments?)Fires event afterClose to attached listeners.
fireAfterOpen(mArguments?)Fires event afterOpen to attached listeners.
fireBeforeClose(mArguments?)Fires event beforeClose to attached listeners.
fireBeforeOpen(mArguments?)Fires event beforeOpen to attached listeners.
getAriaDescribedBy()Returns array of IDs of the elements which are the current targets of the association ariaDescribedBy.
getBeginButton()Getter for beginButton aggregation
getContent()Gets content of aggregation content.
getContentHeight()Gets current value of property contentHeight.
getContentWidth()Gets current value of property contentWidth.
getCustomHeader()Gets content of aggregation customHeader.
getEndButton()Getter for endButton aggregation
getHorizontalScrolling()Gets current value of property horizontalScrolling.
getIcon()Gets current value of property icon.
getInitialFocus()ID of the element which is the current target of the association initialFocus, or null.
getModal()Gets current value of property modal.
getOffsetX()Gets current value of property offsetX.
getOffsetY()Gets current value of property offsetY.
getPlacement()Gets current value of property placement.
getResizable()Gets current value of property resizable.
getShowCloseButton()Gets current value of property showCloseButton.
getShowHeader()Gets current value of property showHeader.
getSubHeader()Gets content of aggregation subHeader.
getTitle()Gets current value of property title.
getVerticalScrolling()Gets current value of property verticalScrolling.
indexOfContent(oContent)Checks for the provided sap.ui.core.Control in the aggregation content.
insertContent(oContent, iIndex)Inserts a content into the aggregation content.
isOpen()Checks whether the ResponsivePopover is currently open.
openBy(oControl)Opens the ResponsivePopover.
removeAllAriaDescribedBy()Removes all the controls in the association named ariaDescribedBy.
removeAllContent()Removes all the controls from the aggregation content.
removeAriaDescribedBy(vAriaDescribedBy)Removes an ariaDescribedBy from the association named ariaDescribedBy.
removeContent(vContent)Removes a content from the aggregation content.
setBeginButton(oButton)Setter for beginButton aggregation
setContentHeight(sContentHeight)Sets a new value for property contentHeight.
setContentWidth(sContentWidth)Sets a new value for property contentWidth.
setCustomHeader(oCustomHeader)Sets the aggregated customHeader.
setEndButton(oButton)Setter for endButton aggregation
setHorizontalScrolling(bHorizontalScrolling)Sets a new value for property horizontalScrolling.
setIcon(sIcon)Sets a new value for property icon.
setInitialFocus(oInitialFocus)Sets the associated initialFocus.
setModal(bModal)Sets a new value for property modal.
setOffsetX(iOffsetX)Sets a new value for property offsetX.
setOffsetY(iOffsetY)Sets a new value for property offsetY.
setPlacement(sPlacement)Sets a new value for property placement.
setResizable(bResizable)Sets a new value for property resizable.
setShowCloseButton(bShowCloseButton)Determines if the close button to the ResponsivePopover is shown or not.
setShowHeader(bShowHeader)Sets a new value for property showHeader.
setSubHeader(oSubHeader)Sets the aggregated subHeader.
setTitle(sTitle)Sets a new value for property title.
setVerticalScrolling(bVerticalScrolling)Sets a new value for property verticalScrolling.
Constructor Detail
new sap.m.ResponsivePopover(sId?, mSettings?)
Constructor for a new ResponsivePopover.

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
afterClose(oControlEvent)
Event is fired after popover or dialog is closed.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
{sap.ui.core.Control}oControlEvent.getParameters.openBy This parameter contains the control which is passed as the parameter when calling openBy method. When runs on the phone, this parameter is undefined.
{sap.m.Button}oControlEvent.getParameters.origin This parameter contains the control which triggers the close of the ResponsivePopover. This parameter is undefined when runs on desktop or tablet.
afterOpen(oControlEvent)
Event is fired after popover or dialog is open.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
{sap.ui.core.Control}oControlEvent.getParameters.openBy This parameter contains the control which is passed as the parameter when calling openBy method. When runs on the phone, this parameter is undefined.
beforeClose(oControlEvent)
Event is fired before popover or dialog is closed.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
{sap.ui.core.Control}oControlEvent.getParameters.openBy This parameter contains the control which is passed as the parameter when calling openBy method. When runs on the phone, this parameter is undefined.
{sap.m.Button}oControlEvent.getParameters.origin This parameter contains the control which triggers the close of the ResponsivePopover. This parameter is undefined when runs on desktop or tablet.
beforeOpen(oControlEvent)
Event is fired before popover or dialog is open.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
{sap.ui.core.Control}oControlEvent.getParameters.openBy This parameter contains the control which is passed as the parameter when calling openBy method. When runs on the phone, this parameter is undefined.
Method Detail
sap.m.ResponsivePopover.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.ResponsivePopover 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.m.ResponsivePopover.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.m.ResponsivePopover.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
addAriaDescribedBy(vAriaDescribedBy): sap.m.ResponsivePopover
Adds some ariaDescribedBy into the association ariaDescribedBy.
Parameters:
{string|sap.ui.core.Control}vAriaDescribedBy the ariaDescribedBy to add; if empty, nothing is inserted
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
addContent(oControl)
Adds content to the ResponsivePopover
Parameters:
{sap.ui.core.Control}oControl The control to be added to the content
attachAfterClose(oData?, fnFunction, oListener?): sap.m.ResponsivePopover
Attaches event handler fnFunction to the afterClose event of this sap.m.ResponsivePopover.

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.m.ResponsivePopover itself.

Event is fired after popover or dialog is closed.

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.m.ResponsivePopover itself
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
attachAfterOpen(oData?, fnFunction, oListener?): sap.m.ResponsivePopover
Attaches event handler fnFunction to the afterOpen event of this sap.m.ResponsivePopover.

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.m.ResponsivePopover itself.

Event is fired after popover or dialog is open.

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.m.ResponsivePopover itself
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
attachBeforeClose(oData?, fnFunction, oListener?): sap.m.ResponsivePopover
Attaches event handler fnFunction to the beforeClose event of this sap.m.ResponsivePopover.

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.m.ResponsivePopover itself.

Event is fired before popover or dialog is closed.

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.m.ResponsivePopover itself
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
attachBeforeOpen(oData?, fnFunction, oListener?): sap.m.ResponsivePopover
Attaches event handler fnFunction to the beforeOpen event of this sap.m.ResponsivePopover.

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.m.ResponsivePopover itself.

Event is fired before popover or dialog is open.

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.m.ResponsivePopover itself
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
Creates a new instance of ResponsivePopover with the same settings as the ResponsivePopover on which the method is called
Returns:
{sap.m.ResponsivePopover} New instance of ResponsivePopover
Closes the ResponsivePopover.
Returns:
{sap.ui.core.Control}
destroyBeginButton(): sap.m.ResponsivePopover
Destroys the beginButton in the aggregation beginButton.
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
destroyContent(): sap.m.ResponsivePopover
Destroys all the content in the aggregation content.
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
destroyCustomHeader(): sap.m.ResponsivePopover
Destroys the customHeader in the aggregation customHeader.
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
destroyEndButton(): sap.m.ResponsivePopover
Destroys the endButton in the aggregation endButton.
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
destroySubHeader(): sap.m.ResponsivePopover
Destroys the subHeader in the aggregation subHeader.
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
detachAfterClose(fnFunction, oListener): sap.m.ResponsivePopover
Detaches event handler fnFunction from the afterClose event of this sap.m.ResponsivePopover.

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.m.ResponsivePopover} Reference to this in order to allow method chaining
detachAfterOpen(fnFunction, oListener): sap.m.ResponsivePopover
Detaches event handler fnFunction from the afterOpen event of this sap.m.ResponsivePopover.

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.m.ResponsivePopover} Reference to this in order to allow method chaining
detachBeforeClose(fnFunction, oListener): sap.m.ResponsivePopover
Detaches event handler fnFunction from the beforeClose event of this sap.m.ResponsivePopover.

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.m.ResponsivePopover} Reference to this in order to allow method chaining
detachBeforeOpen(fnFunction, oListener): sap.m.ResponsivePopover
Detaches event handler fnFunction from the beforeOpen event of this sap.m.ResponsivePopover.

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.m.ResponsivePopover} Reference to this in order to allow method chaining
fireAfterClose(mArguments?): sap.m.ResponsivePopover
Fires event afterClose to attached listeners.

Expects the following event parameters:

  • openBy of type sap.ui.core.ControlThis parameter contains the control which is passed as the parameter when calling openBy method. When runs on the phone, this parameter is undefined.
  • origin of type sap.m.ButtonThis parameter contains the control which triggers the close of the ResponsivePopover. This parameter is undefined when runs on desktop or tablet.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
fireAfterOpen(mArguments?): sap.m.ResponsivePopover
Fires event afterOpen to attached listeners.

Expects the following event parameters:

  • openBy of type sap.ui.core.ControlThis parameter contains the control which is passed as the parameter when calling openBy method. When runs on the phone, this parameter is undefined.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
fireBeforeClose(mArguments?): sap.m.ResponsivePopover
Fires event beforeClose to attached listeners.

Expects the following event parameters:

  • openBy of type sap.ui.core.ControlThis parameter contains the control which is passed as the parameter when calling openBy method. When runs on the phone, this parameter is undefined.
  • origin of type sap.m.ButtonThis parameter contains the control which triggers the close of the ResponsivePopover. This parameter is undefined when runs on desktop or tablet.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
fireBeforeOpen(mArguments?): sap.m.ResponsivePopover
Fires event beforeOpen to attached listeners.

Expects the following event parameters:

  • openBy of type sap.ui.core.ControlThis parameter contains the control which is passed as the parameter when calling openBy method. When runs on the phone, this parameter is undefined.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
getAriaDescribedBy(): sap.ui.core.Control[]
Returns array of IDs of the elements which are the current targets of the association ariaDescribedBy.
Returns:
{sap.ui.core.Control[]}
getBeginButton(): sap.m.Button
Getter for beginButton aggregation
Returns:
{sap.m.Button} The button that is set as a beginButton aggregation
getContent(): sap.ui.core.Control[]
Gets content of aggregation content.

Content is supported by both variants. Please see the documentation on sap.m.Popover#content and sap.m.Dialog#content

Returns:
{sap.ui.core.Control[]}
getContentHeight(): sap.ui.core.CSSSize
Gets current value of property contentHeight.

This property is supported by both variants. Please see the documentation on sap.m.Popover#contentHeight and sap.m.Dialog#contentHeight

Returns:
{sap.ui.core.CSSSize} Value of property contentHeight
getContentWidth(): sap.ui.core.CSSSize
Gets current value of property contentWidth.

This property is supported by both variants. Please see the documentation on sap.m.Popover#contentWidth and sap.m.Dialog#contentWidth

Returns:
{sap.ui.core.CSSSize} Value of property contentWidth
getCustomHeader(): sap.m.IBar
Gets content of aggregation customHeader.

CustomHeader is supported by both variants. Please see the documentation on sap.m.Popover#customHeader and sap.m.Dialog#customHeader

Returns:
{sap.m.IBar}
getEndButton(): sap.m.Button
Getter for endButton aggregation
Returns:
{sap.m.Button} The button that is set as a endButton aggregation
getHorizontalScrolling(): boolean
Gets current value of property horizontalScrolling.

This property is supported by both variants. Please see the documentation on sap.m.Popover#horizontalScrolling and sap.m.Dialog#horizontalScrolling

Default value is true.

Returns:
{boolean} Value of property horizontalScrolling
getIcon(): sap.ui.core.URI
Gets current value of property icon.

This property only takes effect on phone. Please see the documentation sap.m.Dialog#icon.

Returns:
{sap.ui.core.URI} Value of property icon
getInitialFocus(): sap.ui.core.Control
ID of the element which is the current target of the association initialFocus, or null.
Returns:
{sap.ui.core.Control}
getModal(): boolean
Gets current value of property modal.

This property only takes effect on desktop or tablet. Please see the documentation sap.m.Popover#modal.

Returns:
{boolean} Value of property modal
getOffsetX(): int
Gets current value of property offsetX.

This property only takes effect on desktop or tablet. Please see the documentation sap.m.Popover#offsetX.

Returns:
{int} Value of property offsetX
getOffsetY(): int
Gets current value of property offsetY.

This property only takes effect on desktop or tablet. Please see the documentation sap.m.Popover#offsetY.

Returns:
{int} Value of property offsetY
getPlacement(): sap.m.PlacementType
Gets current value of property placement.

This property only takes effect on desktop or tablet. Please see the documentation sap.m.Popover#placement.

Default value is Right.

Returns:
{sap.m.PlacementType} Value of property placement
getResizable(): boolean
Gets current value of property resizable.

Whether resize option is enabled.

Default value is false.

Experimental API:since 1.36.4 Do not use directly on ResponsivePopover while in experimental mode!

Experimental:
since 1.36.4 Do not use directly on ResponsivePopover while in experimental mode!
Since:
1.36.4
Returns:
{boolean} Value of property resizable
getShowCloseButton(): boolean
Gets current value of property showCloseButton.

Determines if a close button should be inserted into the dialog's header dynamically to close the dialog. This property only takes effect on phone.

Default value is true.

Returns:
{boolean} Value of property showCloseButton
getShowHeader(): boolean
Gets current value of property showHeader.

This property is supported by both variants. Please see the documentation on sap.m.Popover#showHeader and sap.m.Dialog#showHeader

Default value is true.

Returns:
{boolean} Value of property showHeader
getSubHeader(): sap.m.IBar
Gets content of aggregation subHeader.

SubHeader is supported by both variants. Please see the documentation on sap.m.Popover#subHeader and sap.m.Dialog#subHeader

Returns:
{sap.m.IBar}
getTitle(): string
Gets current value of property title.

This property is supported by both variants. Please see the documentation on sap.m.Popover#title and sap.m.Dialog#title

Returns:
{string} Value of property title
getVerticalScrolling(): boolean
Gets current value of property verticalScrolling.

This property is supported by both variants. Please see the documentation on sap.m.Popover#verticalScrolling and sap.m.Dialog#verticalScrolling

Default value is true.

Returns:
{boolean} Value of property verticalScrolling
indexOfContent(oContent): int
Checks for the provided sap.ui.core.Control in the aggregation content. and returns its index if found or -1 otherwise.
Parameters:
{sap.ui.core.Control}oContent The content whose index is looked for
Returns:
{int} The index of the provided control in the aggregation if found, or -1 otherwise
insertContent(oContent, iIndex): sap.m.ResponsivePopover
Inserts a content into the aggregation content.
Parameters:
{sap.ui.core.Control}oContent the content to insert; if empty, nothing is inserted
{int}iIndex the 0-based index the content should be inserted at; for a negative value of iIndex, the content is inserted at position 0; for a value greater than the current size of the aggregation, the content is inserted at the last position
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
Checks whether the ResponsivePopover is currently open.
Returns:
{sap.ui.core.Control}
openBy(oControl): sap.ui.core.Control
Opens the ResponsivePopover. The ResponsivePopover is positioned relatively to the control parameter on tablet or desktop and is full screen on phone. Therefore the control parameter is only used on tablet or desktop and is ignored on phone.
Parameters:
{object}oControl

When this control is displayed on tablet or desktop, the ResponsivePopover is positioned relatively to this control.

Returns:
{sap.ui.core.Control}
removeAllAriaDescribedBy(): sap.ui.core.Control[]
Removes all the controls in the association named ariaDescribedBy.
Returns:
{sap.ui.core.Control[]} An array of the removed elements (might be empty)
removeAllContent(): sap.ui.core.Control[]
Removes all the controls from the aggregation content.

Additionally, it unregisters them from the hosting UIArea.

Returns:
{sap.ui.core.Control[]} An array of the removed elements (might be empty)
removeAriaDescribedBy(vAriaDescribedBy): sap.ui.core.Control
Removes an ariaDescribedBy from the association named ariaDescribedBy.
Parameters:
{int|string|sap.ui.core.Control}vAriaDescribedBy The ariaDescribedByto be removed or its index or ID
Returns:
{sap.ui.core.Control} the removed ariaDescribedBy or null
removeContent(vContent): sap.ui.core.Control
Removes a content from the aggregation content.
Parameters:
{int|string|sap.ui.core.Control}vContent The contentto remove or its index or id
Returns:
{sap.ui.core.Control} The removed content or null
setBeginButton(oButton): sap.m.ResponsivePopover
Setter for beginButton aggregation
Parameters:
{sap.m.Button}oButton The button that will be set as an aggregation
Returns:
{sap.m.ResponsivePopover} Pointer to the control instance for chaining
setContentHeight(sContentHeight): sap.m.ResponsivePopover
Sets a new value for property contentHeight.

This property is supported by both variants. Please see the documentation on sap.m.Popover#contentHeight and sap.m.Dialog#contentHeight

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

Parameters:
{sap.ui.core.CSSSize}sContentHeight New value for property contentHeight
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setContentWidth(sContentWidth): sap.m.ResponsivePopover
Sets a new value for property contentWidth.

This property is supported by both variants. Please see the documentation on sap.m.Popover#contentWidth and sap.m.Dialog#contentWidth

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

Parameters:
{sap.ui.core.CSSSize}sContentWidth New value for property contentWidth
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setCustomHeader(oCustomHeader): sap.m.ResponsivePopover
Sets the aggregated customHeader.
Parameters:
{sap.m.IBar}oCustomHeader The customHeader to set
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setEndButton(oButton): sap.m.ResponsivePopover
Setter for endButton aggregation
Parameters:
{sap.m.Button}oButton The button that will be set as an aggregation
Returns:
{sap.m.ResponsivePopover} Pointer to the control instance for chaining
setHorizontalScrolling(bHorizontalScrolling): sap.m.ResponsivePopover
Sets a new value for property horizontalScrolling.

This property is supported by both variants. Please see the documentation on sap.m.Popover#horizontalScrolling and sap.m.Dialog#horizontalScrolling

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

Default value is true.

Parameters:
{boolean}bHorizontalScrolling New value for property horizontalScrolling
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setIcon(sIcon): sap.m.ResponsivePopover
Sets a new value for property icon.

This property only takes effect on phone. Please see the documentation sap.m.Dialog#icon.

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

Parameters:
{sap.ui.core.URI}sIcon New value for property icon
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setInitialFocus(oInitialFocus): sap.m.ResponsivePopover
Sets the associated initialFocus.
Parameters:
{sap.ui.core.Control}oInitialFocus Id of an element which becomes the new target of this initialFocus association; alternatively, an element instance may be given
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setModal(bModal): sap.m.ResponsivePopover
Sets a new value for property modal.

This property only takes effect on desktop or tablet. Please see the documentation sap.m.Popover#modal.

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

Parameters:
{boolean}bModal New value for property modal
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setOffsetX(iOffsetX): sap.m.ResponsivePopover
Sets a new value for property offsetX.

This property only takes effect on desktop or tablet. Please see the documentation sap.m.Popover#offsetX.

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

Parameters:
{int}iOffsetX New value for property offsetX
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setOffsetY(iOffsetY): sap.m.ResponsivePopover
Sets a new value for property offsetY.

This property only takes effect on desktop or tablet. Please see the documentation sap.m.Popover#offsetY.

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

Parameters:
{int}iOffsetY New value for property offsetY
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setPlacement(sPlacement): sap.m.ResponsivePopover
Sets a new value for property placement.

This property only takes effect on desktop or tablet. Please see the documentation sap.m.Popover#placement.

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

Default value is Right.

Parameters:
{sap.m.PlacementType}sPlacement New value for property placement
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setResizable(bResizable): sap.m.ResponsivePopover
Sets a new value for property resizable.

Whether resize option is enabled.

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

Default value is false.

Experimental API:since 1.36.4 Do not use directly on ResponsivePopover while in experimental mode!

Parameters:
{boolean}bResizable New value for property resizable
Experimental:
since 1.36.4 Do not use directly on ResponsivePopover while in experimental mode!
Since:
1.36.4
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setShowCloseButton(bShowCloseButton): sap.m.ResponsivePopover
Determines if the close button to the ResponsivePopover is shown or not. Works only when ResponsivePopover is used as a dialog
Parameters:
{boolean}bShowCloseButton Defines whether the close button is shown
Returns:
{sap.m.ResponsivePopover} Pointer to the control instance for chaining
setShowHeader(bShowHeader): sap.m.ResponsivePopover
Sets a new value for property showHeader.

This property is supported by both variants. Please see the documentation on sap.m.Popover#showHeader and sap.m.Dialog#showHeader

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

Default value is true.

Parameters:
{boolean}bShowHeader New value for property showHeader
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setSubHeader(oSubHeader): sap.m.ResponsivePopover
Sets the aggregated subHeader.
Parameters:
{sap.m.IBar}oSubHeader The subHeader to set
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setTitle(sTitle): sap.m.ResponsivePopover
Sets a new value for property title.

This property is supported by both variants. Please see the documentation on sap.m.Popover#title and sap.m.Dialog#title

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

Parameters:
{string}sTitle New value for property title
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining
setVerticalScrolling(bVerticalScrolling): sap.m.ResponsivePopover
Sets a new value for property verticalScrolling.

This property is supported by both variants. Please see the documentation on sap.m.Popover#verticalScrolling and sap.m.Dialog#verticalScrolling

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

Default value is true.

Parameters:
{boolean}bVerticalScrolling New value for property verticalScrolling
Returns:
{sap.m.ResponsivePopover} Reference to this in order to allow method chaining