sap.m.Dialog.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.Dialog 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 |
Returns a metadata object for class sap.m.Dialog.
Returns:
_getAnyHeader()
Returns the custom header instance when the customHeader aggregation is set. Otherwise it returns the internal managed header instance. This method can be called within composite controls which use sap.m.Dialog inside.
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.Dialog} | Reference to this in order to allow method chaining |
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.m.Dialog} | Reference to this in order to allow method chaining |
Adds some button to the aggregation buttons
.
Parameters:
{sap.m.Button} | oButton | the button to add; if empty, nothing is inserted |
- Since:
- 1.21.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Adds some content to the aggregation content
.
Parameters:
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
attachAfterClose
(oData?, fnFunction, oListener?): sap.m.Dialog Attaches event handler
fnFunction
to the
afterClose
event of this
sap.m.Dialog
.
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.Dialog
itself.
This event will be fired after the 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.Dialog itself |
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
attachAfterOpen
(oData?, fnFunction, oListener?): sap.m.Dialog Attaches event handler
fnFunction
to the
afterOpen
event of this
sap.m.Dialog
.
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.Dialog
itself.
This event will be fired after the dialog is opened.
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.Dialog itself |
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
attachBeforeClose
(oData?, fnFunction, oListener?): sap.m.Dialog Attaches event handler
fnFunction
to the
beforeClose
event of this
sap.m.Dialog
.
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.Dialog
itself.
This event will be fired before the 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.Dialog itself |
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
attachBeforeOpen
(oData?, fnFunction, oListener?): sap.m.Dialog Attaches event handler
fnFunction
to the
beforeOpen
event of this
sap.m.Dialog
.
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.Dialog
itself.
This event will be fired before the dialog is opened.
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.Dialog itself |
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
close()
Close the dialog.
Destroys the beginButton in the aggregation beginButton
.
- Since:
- 1.15.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Destroys all the buttons in the aggregation buttons
.
- Since:
- 1.21.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Destroys all the content in the aggregation content
.
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Destroys the customHeader in the aggregation customHeader
.
- Since:
- 1.15.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Destroys the endButton in the aggregation endButton
.
- Since:
- 1.15.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Destroys the subHeader in the aggregation subHeader
.
- Since:
- 1.12.2
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Detaches event handler
fnFunction
from the
afterClose
event of this
sap.m.Dialog
.
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.Dialog} | Reference to this in order to allow method chaining |
Detaches event handler
fnFunction
from the
afterOpen
event of this
sap.m.Dialog
.
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.Dialog} | Reference to this in order to allow method chaining |
Detaches event handler
fnFunction
from the
beforeClose
event of this
sap.m.Dialog
.
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.Dialog} | Reference to this in order to allow method chaining |
Detaches event handler
fnFunction
from the
beforeOpen
event of this
sap.m.Dialog
.
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.Dialog} | Reference to this in order to allow method chaining |
Fires event
afterClose
to attached listeners.
Expects the following event parameters:
origin
of type sap.m.Button
This indicates the trigger of closing the dialog. If dialog is closed by either leftButton or rightButton, the button that closes the dialog is set to this parameter. Otherwise this parameter is set to null.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Fires event afterOpen
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Fires event
beforeClose
to attached listeners.
Expects the following event parameters:
origin
of type sap.m.Button
This indicates the trigger of closing the dialog. If dialog is closed by either leftButton or rightButton, the button that closes the dialog is set to this parameter. Otherwise this parameter is set to null.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Fires event beforeOpen
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Returns array of IDs of the elements which are the current targets of the association ariaDescribedBy
.
Returns:
Returns array of IDs of the elements which are the current targets of the association ariaLabelledBy
.
Returns:
Gets content of aggregation
beginButton
.
The button which is rendered to the left side (right side in RTL mode) of the endButton in the footer area inside the dialog. From UI5 version 1.21.1, there's a new aggregation "buttons" created with which more than 2 buttons can be added to the footer area of dialog. If the new "buttons" aggregation is set, any change made to this aggregation has no effect anymore. When runs on the phone, this button (and the endButton together when set) is (are) rendered at the center of the footer area. When runs on the other platforms, this button (and the endButton together when set) is (are) rendered at the right side (left side in RTL mode) of the footer area.
- Since:
- 1.15.1
Returns:
Gets content of aggregation
buttons
.
Buttons can be added to the footer area of dialog through this aggregation. When this aggregation is set, any change to beginButton and endButton has no effect anymore. Buttons which are inside this aggregation are aligned at the right side (left side in RTL mode) of the footer instead of in the middle of the footer.
- Since:
- 1.21.1
Returns:
Gets content of aggregation
content
.
The content inside the dialog.
Note: When the content of the Dialog
is comprised of controls that use position: absolute
, such as SplitContainer
, the dialog has to have either stretch: true
or contentHeight
set.
Returns:
Gets current value of property
contentHeight
.
Preferred height of content in Dialog. If the preferred height is bigger than the available space on screen, it will be overwritten by the maximum available height on screen in order to make sure that dialog isn't cut off.
- Since:
- 1.12.1
Returns:
Gets current value of property
contentWidth
.
Preferred width of content in Dialog. This property affects the width of dialog on phone in landscape mode, tablet or desktop, because the dialog has a fixed width on phone in portrait mode. If the preferred width is less than the minimum width of dilaog or more than the available width of the screen, it will be overwritten by the min or max value. The current mininum value of dialog width on tablet is 400px.
- Since:
- 1.12.1
Returns:
Gets content of aggregation
customHeader
.
CustomHeader is only supported in theme sap_bluecrystal. When it's set, the icon, title and showHeader are properties ignored. Only the customHeader is shown as the header of the dialog.
- Since:
- 1.15.1
Returns:
getDraggable(): boolean
Gets current value of property
draggable
.
Indicates whether the dialog is draggable. If this property is set to true, the dialog will be draggable by it's header. This property has a default value false. The Dialog can be draggable only in desktop mode.
Default value is false
.
- Since:
- 1.30
Returns:
{boolean} | Value of property draggable |
Gets content of aggregation
endButton
.
The button which is rendered to the right side (left side in RTL mode) of the beginButton in the footer area inside the dialog. From UI5 version 1.21.1, there's a new aggregation "buttons" created with which more than 2 buttons can be added to the footer area of dialog. If the new "buttons" aggregation is set, any change made to this aggregation has no effect anymore. When runs on the phone, this button (and the beginButton together when set) is (are) rendered at the center of the footer area. When runs on the other platforms, this button (and the beginButton together when set) is (are) rendered at the right side (left side in RTL mode) of the footer area.
- Since:
- 1.15.1
Returns:
getHorizontalScrolling(): boolean
Gets current value of property
horizontalScrolling
.
Indicates if user can scroll horizontally inside dialog when the content is bigger than the content area. Dialog detects if there's sap.m.NavContainer, sap.m.Page, sap.m.ScrollContainer or sap.m.SplitContainer as direct child added to dialog. If there is, dialog will turn off scrolling by setting this property to false automatically ignoring the existing value of this property.
Default value is true
.
- Since:
- 1.15.1
Returns:
{boolean} | Value of property horizontalScrolling |
Gets current value of property
icon
.
Icon displayed in the dialog's header. This icon is invisible on the iOS platform and it's density aware. You can use the density convention (@2, @1.5, etc.) to provide higher resolution image for higher density screen.
Returns:
ID of the element which is the current target of the association initialFocus
, or null
.
- Since:
- 1.15.0
Returns:
getResizable(): boolean
Gets current value of property
resizable
.
Indicates whether the dialog is resizable. the dialog is resizable. If this property is set to true, the dialog will have a resize handler in it's bottom right corner. This property has a default value false. The Dialog can be resizable only in desktop mode.
Default value is false
.
- Since:
- 1.30
Returns:
{boolean} | Value of property resizable |
getShowHeader(): boolean
Gets current value of property
showHeader
.
Determines whether the header is shown inside the dialog. If this property is set to true, the text and icon property are ignored. This property has a default value true.
Default value is true
.
- Since:
- 1.15.1
Returns:
{boolean} | Value of property showHeader |
Gets current value of property
state
.
The state affects the icon and the title color. If other than "None" is set, a predefined icon will be added to the dialog. Setting icon property will overwrite the predefined icon. The default value is "None" which doesn't add any icon to the Dialog control. This property is by now only supported by blue crystal theme.
Default value is None
.
- Since:
- 1.11.2
Returns:
getStretch(): boolean
Gets current value of property
stretch
.
Determines if the dialog will be stretched to full screen. This property is only applicable to standard dialog and message type dialog ignores this property.
Default value is false
.
- Since:
- 1.13.1
Returns:
{boolean} | Value of property stretch |
Gets content of aggregation
subHeader
.
When subHeader is assigned to Dialog, it's rendered directly after the main header in Dialog. SubHeader is out of the content area and won't be scrolled when content's size is bigger than the content area's size.
- Since:
- 1.12.2
Returns:
getTitle(): string
Gets current value of property
title
.
Title text appears in the dialog header.
Returns:
{string} | Value of property title |
Gets current value of property
type
.
The type of the dialog. In theme sap_bluecrystal, the type "message" will limit the dialog's width within 480px on tablet and desktop.
Default value is Standard
.
Returns:
getVerticalScrolling(): boolean
Gets current value of property
verticalScrolling
.
Indicates if user can scroll vertically inside dialog when the content is bigger than the content area. Dialog detects if there's sap.m.NavContainer, sap.m.Page, sap.m.ScrollContainer or sap.m.SplitContainer as direct child added to dialog. If there is, dialog will turn off scrolling by setting this property to false automatically ignoring the existing value of this property.
Default value is true
.
- Since:
- 1.15.1
Returns:
{boolean} | Value of property verticalScrolling |
indexOfButton(oButton): int
Checks for the provided sap.m.Button
in the aggregation buttons
. and returns its index if found or -1 otherwise.
Parameters:
- Since:
- 1.21.1
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
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:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a button into the aggregation buttons
.
Parameters:
{sap.m.Button} | oButton | the button to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the button should be inserted at; for a negative value of iIndex , the button is inserted at position 0; for a value greater than the current size of the aggregation, the button is inserted at the last position |
- Since:
- 1.21.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
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.Dialog} | Reference to this in order to allow method chaining |
isOpen()
The method checks if the Dialog is open. It returns true when the Dialog is currently open (this includes opening and closing animations), otherwise it returns false.
- Since:
- 1.9.1
Removes all the controls in the association named ariaDescribedBy
.
Returns:
Removes all the controls in the association named ariaLabelledBy
.
Returns:
Removes all the controls from the aggregation
buttons
.
Additionally, it unregisters them from the hosting UIArea.
- Since:
- 1.21.1
Returns:
{sap.m.Button[]} | An array of the removed elements (might be empty) |
Removes all the controls from the aggregation
content
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
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:
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:
Removes a button from the aggregation buttons
.
Parameters:
{int|string|sap.m.Button} | vButton | The buttonto remove or its index or id |
- Since:
- 1.21.1
Returns:
Removes a content from the aggregation content
.
Parameters:
Returns:
Sets the aggregated beginButton
.
Parameters:
- Since:
- 1.15.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
contentHeight
.
Preferred height of content in Dialog. If the preferred height is bigger than the available space on screen, it will be overwritten by the maximum available height on screen in order to make sure that dialog isn't cut off.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
- Since:
- 1.12.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
contentWidth
.
Preferred width of content in Dialog. This property affects the width of dialog on phone in landscape mode, tablet or desktop, because the dialog has a fixed width on phone in portrait mode. If the preferred width is less than the minimum width of dilaog or more than the available width of the screen, it will be overwritten by the min or max value. The current mininum value of dialog width on tablet is 400px.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
- Since:
- 1.12.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets the aggregated customHeader
.
Parameters:
- Since:
- 1.15.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
draggable
.
Indicates whether the dialog is draggable. If this property is set to true, the dialog will be draggable by it's header. This property has a default value false. The Dialog can be draggable only in desktop mode.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bDraggable | New value for property draggable |
- Since:
- 1.30
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets the aggregated endButton
.
Parameters:
- Since:
- 1.15.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
horizontalScrolling
.
Indicates if user can scroll horizontally inside dialog when the content is bigger than the content area. Dialog detects if there's sap.m.NavContainer, sap.m.Page, sap.m.ScrollContainer or sap.m.SplitContainer as direct child added to dialog. If there is, dialog will turn off scrolling by setting this property to false automatically ignoring the existing value of this property.
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 |
- Since:
- 1.15.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
icon
.
Icon displayed in the dialog's header. This icon is invisible on the iOS platform and it's density aware. You can use the density convention (@2, @1.5, etc.) to provide higher resolution image for higher density screen.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
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 |
- Since:
- 1.15.0
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
resizable
.
Indicates whether the dialog is resizable. the dialog is resizable. If this property is set to true, the dialog will have a resize handler in it's bottom right corner. This property has a default value false. The Dialog can be resizable only in desktop mode.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bResizable | New value for property resizable |
- Since:
- 1.30
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
showHeader
.
Determines whether the header is shown inside the dialog. If this property is set to true, the text and icon property are ignored. This property has a default value true.
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 |
- Since:
- 1.15.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
state
.
The state affects the icon and the title color. If other than "None" is set, a predefined icon will be added to the dialog. Setting icon property will overwrite the predefined icon. The default value is "None" which doesn't add any icon to the Dialog control. This property is by now only supported by blue crystal theme.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is None
.
Parameters:
- Since:
- 1.11.2
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
stretch
.
Determines if the dialog will be stretched to full screen. This property is only applicable to standard dialog and message type dialog ignores this property.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bStretch | New value for property stretch |
- Since:
- 1.13.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets the aggregated subHeader
.
Parameters:
- Since:
- 1.12.2
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
title
.
Title text appears in the dialog header.
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.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
type
.
The type of the dialog. In theme sap_bluecrystal, the type "message" will limit the dialog's width within 480px on tablet and desktop.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Standard
.
Parameters:
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
verticalScrolling
.
Indicates if user can scroll vertically inside dialog when the content is bigger than the content area. Dialog detects if there's sap.m.NavContainer, sap.m.Page, sap.m.ScrollContainer or sap.m.SplitContainer as direct child added to dialog. If there is, dialog will turn off scrolling by setting this property to false automatically ignoring the existing value of this property.
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 |
- Since:
- 1.15.1
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
ID of the element which is the current target of the association leftButton
, or null
.
- Deprecated:
- Since version 1.15.1.
LeftButton has been deprecated since 1.15.1. Please use the beginButton instead which is more RTL friendly.
Returns:
ID of the element which is the current target of the association rightButton
, or null
.
- Deprecated:
- Since version 1.15.1.
RightButton has been deprecated since 1.15.1. Please use the endButton instead which is more RTL friendly.
Returns:
getStretchOnPhone(): boolean
Gets current value of property
stretchOnPhone
.
Determines whether the dialog will displayed on full screen on a phone.
Default value is false
.
- Deprecated:
- Since version 1.13.1. Please use the new stretch property instead. This enables a stretched dialog even on tablet and desktop. If you want to achieve the same effect as stretchOnPhone, please set the stretch with jQuery.device.is.phone, then dialog is only stretched when runs on phone.
- Since:
- 1.11.2
Returns:
{boolean} | Value of property stretchOnPhone |
Sets the associated leftButton
.
Parameters:
{sap.m.Button} | oLeftButton | Id of an element which becomes the new target of this leftButton association; alternatively, an element instance may be given |
- Deprecated:
- Since version 1.15.1.
LeftButton has been deprecated since 1.15.1. Please use the beginButton instead which is more RTL friendly.
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets the associated rightButton
.
Parameters:
{sap.m.Button} | oRightButton | Id of an element which becomes the new target of this rightButton association; alternatively, an element instance may be given |
- Deprecated:
- Since version 1.15.1.
RightButton has been deprecated since 1.15.1. Please use the endButton instead which is more RTL friendly.
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |
Sets a new value for property
stretchOnPhone
.
Determines whether the dialog will displayed on full screen on a phone.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bStretchOnPhone | New value for property stretchOnPhone |
- Deprecated:
- Since version 1.13.1. Please use the new stretch property instead. This enables a stretched dialog even on tablet and desktop. If you want to achieve the same effect as stretchOnPhone, please set the stretch with jQuery.device.is.phone, then dialog is only stretched when runs on phone.
- Since:
- 1.11.2
Returns:
{sap.m.Dialog} | Reference to this in order to allow method chaining |