The QuickView control renders a responsive popover (sap.m.Popover or sap.m.Dialog) and displays information of an object in a business-card format. It also allows this object to be linked to another object using one of the links in the responsive popover. Clicking that link updates the information in the popover with the data of the linked object. Unlimited number of objects can be linked.
Since: 1.28.11.
Event Summary
afterClose(oControlEvent)This event fires after the QuickView is closed. afterOpen(oControlEvent)This event fires after the QuickView is opened. beforeClose(oControlEvent)This event fires before the QuickView is closed. beforeOpen(oControlEvent)This event fires before the QuickView is opened. Method Summary
sap.m.QuickView.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.QuickView with name sClassName
and enriches it with the information contained in oClassInfo
. attachAfterClose(oData?, fnFunction, oListener?)Attaches event handler fnFunction
to the afterClose
event of this sap.m.QuickView
. attachAfterOpen(oData?, fnFunction, oListener?)Attaches event handler fnFunction
to the afterOpen
event of this sap.m.QuickView
. attachBeforeClose(oData?, fnFunction, oListener?)Attaches event handler fnFunction
to the beforeClose
event of this sap.m.QuickView
. attachBeforeOpen(oData?, fnFunction, oListener?)Attaches event handler fnFunction
to the beforeOpen
event of this sap.m.QuickView
. detachAfterClose(fnFunction, oListener)Detaches event handler fnFunction
from the afterClose
event of this sap.m.QuickView
. detachAfterOpen(fnFunction, oListener)Detaches event handler fnFunction
from the afterOpen
event of this sap.m.QuickView
. detachBeforeClose(fnFunction, oListener)Detaches event handler fnFunction
from the beforeClose
event of this sap.m.QuickView
. detachBeforeOpen(fnFunction, oListener)Detaches event handler fnFunction
from the beforeOpen
event of this sap.m.QuickView
. fireAfterClose(mArguments?)Fires event afterClose
to attached listeners. fireAfterOpen(mArguments?)Fires event afterOpen
to attached listeners. fireBeforeOpen(mArguments?)Fires event beforeOpen
to attached listeners. getWidth()Gets current value of property width
. openBy(oControl)Opens the QuickView. setPlacement(sPlacement)The method sets placement position of the QuickView. setWidth(sWidth)The method sets the width of the QuickView. addPage,
attachAfterNavigate,
attachNavigate,
bindPages,
destroyPages,
detachAfterNavigate,
detachNavigate,
fireAfterNavigate,
fireNavigate,
getPages,
indexOfPage,
insertPage,
navigateBack,
removeAllPages,
removePage,
unbindPages addStyleClass,
allowTextSelection,
attachBrowserEvent,
attachValidateFieldGroup,
checkFieldGroupIds,
clone,
detachBrowserEvent,
detachValidateFieldGroup,
fireValidateFieldGroup,
getAccessibilityInfo,
getBusy,
getBusyIndicatorDelay,
getControlsByFieldGroupId,
getFieldGroupIds,
getIdForLabel,
getRenderer,
getVisible,
hasStyleClass,
invalidate,
isBusy,
onAfterRendering,
onBeforeRendering,
placeAt,
removeStyleClass,
rerender,
setBusy,
setBusyIndicatorDelay,
setFieldGroupIds,
setVisible,
toggleStyleClass,
triggerValidateFieldGroup $,
addCustomData,
addDependent,
addEventDelegate,
applyFocusInfo,
bindElement,
data,
destroy,
destroyCustomData,
destroyDependents,
destroyLayoutData,
destroyTooltip,
enhanceAccessibilityState,
exit,
findElements,
fireEvent,
focus,
getCustomData,
getDependents,
getDomRef,
getElementBinding,
getFocusDomRef,
getFocusInfo,
getInterface,
getLayoutData,
getMetadata,
getTooltip,
getTooltip_AsString,
getTooltip_Text,
indexOfCustomData,
indexOfDependent,
insertCustomData,
insertDependent,
prop,
removeAllCustomData,
removeAllDependents,
removeCustomData,
removeDependent,
removeEventDelegate,
setLayoutData,
setTooltip,
toString,
unbindElement addAggregation,
addAssociation,
applySettings,
attachFormatError,
attachModelContextChange,
attachParseError,
attachValidationError,
attachValidationSuccess,
bindAggregation,
bindContext,
bindObject,
bindProperty,
destroyAggregation,
detachFormatError,
detachModelContextChange,
detachParseError,
detachValidationError,
detachValidationSuccess,
findAggregatedObjects,
fireFormatError,
fireModelContextChange,
fireParseError,
fireValidationError,
fireValidationSuccess,
getAggregation,
getAssociation,
getBinding,
getBindingContext,
getBindingInfo,
getBindingPath,
getEventingParent,
getId,
getModel,
getObjectBinding,
getOriginInfo,
getParent,
getProperty,
hasModel,
indexOfAggregation,
insertAggregation,
isBound,
isInvalidateSuppressed,
isTreeBinding,
propagateMessages,
removeAggregation,
removeAllAggregation,
removeAllAssociation,
removeAssociation,
setAggregation,
setAssociation,
setBindingContext,
setModel,
setProperty,
unbindAggregation,
unbindContext,
unbindObject,
unbindProperty,
validateAggregation,
validateProperty Constructor Detail
new sap.m.QuickView(sId?, mSettings?)
Constructor for a new QuickView.
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:
- Properties
- placement : sap.m.PlacementType (default: Right)
- width : sap.ui.core.CSSSize (default: 320px)
- Events
- afterOpen : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- afterClose : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- beforeOpen : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- beforeClose : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.m.QuickViewBase 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)
This event fires after the QuickView 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 refers to the control, which opens the QuickView. |
{sap.m.Button} | oControlEvent.getParameters.origin | This parameter contains the control, which triggers the close of the QuickView. It is undefined when running on desktop or tablet. |
afterOpen(oControlEvent)
This event fires after the QuickView is opened.
Parameters:
beforeClose(oControlEvent)
This event fires before the QuickView 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 refers to the control, which opens the QuickView. |
{sap.m.Button} | oControlEvent.getParameters.origin | This parameter contains the control, which triggers the close of the QuickView. It is undefined when running on desktop or tablet. |
beforeOpen(oControlEvent)
This event fires before the QuickView is opened.
Parameters:
Method Detail
sap.m.QuickView.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.QuickView with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.m.QuickViewBase.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.QuickView.
Returns:
Attaches event handler
fnFunction
to the
afterClose
event of this
sap.m.QuickView
.
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.QuickView
itself.
This event fires after the QuickView 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.QuickView itself |
Returns:
Attaches event handler
fnFunction
to the
afterOpen
event of this
sap.m.QuickView
.
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.QuickView
itself.
This event fires after the QuickView 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.QuickView itself |
Returns:
Attaches event handler
fnFunction
to the
beforeClose
event of this
sap.m.QuickView
.
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.QuickView
itself.
This event fires before the QuickView 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.QuickView itself |
Returns:
Attaches event handler
fnFunction
to the
beforeOpen
event of this
sap.m.QuickView
.
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.QuickView
itself.
This event fires before the QuickView 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.QuickView itself |
Returns:
Detaches event handler
fnFunction
from the
afterClose
event of this
sap.m.QuickView
.
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:
Detaches event handler
fnFunction
from the
afterOpen
event of this
sap.m.QuickView
.
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:
Detaches event handler
fnFunction
from the
beforeClose
event of this
sap.m.QuickView
.
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:
Detaches event handler
fnFunction
from the
beforeOpen
event of this
sap.m.QuickView
.
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:
Fires event
afterClose
to attached listeners.
Expects the following event parameters:
openBy
of type sap.ui.core.Control
This parameter refers to the control, which opens the QuickView.origin
of type sap.m.Button
This parameter contains the control, which triggers the close of the QuickView. It is undefined when running on desktop or tablet.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
afterOpen
to attached listeners.
Expects the following event parameters:
openBy
of type sap.ui.core.Control
This parameter refers to the control, which opens the QuickView.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
beforeClose
to attached listeners.
Expects the following event parameters:
openBy
of type sap.ui.core.Control
This parameter refers to the control, which opens the QuickView.origin
of type sap.m.Button
This parameter contains the control, which triggers the close of the QuickView. It is undefined when running on desktop or tablet.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
beforeOpen
to attached listeners.
Expects the following event parameters:
openBy
of type sap.ui.core.Control
This parameter refers to the control, which opens the QuickView.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets current value of property
placement
.
This property is reused from sap.m.Popover and only takes effect when running on desktop or tablet. Please refer the documentation of the placement property of sap.m.Popover.
Default value is Right
.
Returns:
Gets current value of property
width
.
The width of the QuickView. The property takes effect only when running on desktop or tablet.
Default value is 320px
.
Returns:
Opens the QuickView.
Parameters:
Returns:
The method sets placement position of the QuickView.
Parameters:
{sap.m.PlacementType} | sPlacement | The side from which the QuickView appears relative to the control that opens it. |
Returns:
The method sets the width of the QuickView. Works only on desktop or tablet.
Parameters:
Returns: