Class sap.m.QuickViewBaseModule: sap/m/QuickViewBase
QuickViewBase class provides base functionality for QuickView and QuickViewCard. Do not use it directly.
Since: 1.28.11.
sClassName and enriches it with the information contained in oClassInfo.fnFunction to the afterNavigate event of this sap.m.QuickViewBase.fnFunction to the navigate event of this sap.m.QuickViewBase.fnFunction from the afterNavigate event of this sap.m.QuickViewBase.fnFunction from the navigate event of this sap.m.QuickViewBase. 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:
- Aggregations
- pages : sap.m.QuickViewPage[] (default)
- Events
- navigate : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- afterNavigate : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.
| {string} | sId? | ID for the new control, generated automatically if no ID is given |
| {object} | mSettings? | Initial settings for the new control |
| {sap.ui.base.Event} | oControlEvent | |
| {sap.ui.base.EventProvider} | oControlEvent.getSource | |
| {object} | oControlEvent.getParameters | |
| {sap.ui.core.Control} | oControlEvent.getParameters.from | Determines the page, which has been displayed before navigation. |
| {string} | oControlEvent.getParameters.fromId | Determines the ID of the page, which has been displayed before navigation. |
| {sap.ui.core.Control} | oControlEvent.getParameters.to | Determines the page, which is now displayed after navigation. |
| {string} | oControlEvent.getParameters.toId | Determines the ID of the page, which is now displayed after navigation. |
| {boolean} | oControlEvent.getParameters.firstTime | Determines whether the "to" page (a control with the ID of the page, which has been navigated to) has not been displayed/navigated to before. |
| {boolean} | oControlEvent.getParameters.isTo | Determines whether this was a forward navigation. |
| {boolean} | oControlEvent.getParameters.isBack | Determines whether this was a back navigation. |
| {boolean} | oControlEvent.getParameters.isBackToTop | Determines whether this was a navigation to the root page. |
| {boolean} | oControlEvent.getParameters.isBackToPage | Determines whether this was a navigation to a specific page. |
| {string} | oControlEvent.getParameters.direction | Determines how the navigation was triggered, possible values are "to", "back", "backToPage", and "backToTop". |
| {boolean} | oControlEvent.getParameters.isTopPage | Determines whether this is a navigation to the top page. |
| {sap.ui.base.Event} | oControlEvent | |
| {sap.ui.base.EventProvider} | oControlEvent.getSource | |
| {object} | oControlEvent.getParameters | |
| {sap.ui.core.Control} | oControlEvent.getParameters.from | The page which was displayed before the current navigation. |
| {string} | oControlEvent.getParameters.fromId | The ID of the page which was displayed before the current navigation. |
| {sap.ui.core.Control} | oControlEvent.getParameters.to | The page which will be displayed after the current navigation. |
| {string} | oControlEvent.getParameters.toId | The ID of the page which will be displayed after the current navigation. |
| {boolean} | oControlEvent.getParameters.firstTime | Determines whether the "to" page (a control with the ID of the page which is currently navigated to) has not been displayed/navigated to before. |
| {boolean} | oControlEvent.getParameters.isTo | Determines whether this is a forward navigation. |
| {boolean} | oControlEvent.getParameters.isBack | Determines whether this is a back navigation. |
| {boolean} | oControlEvent.getParameters.isBackToTop | Determines whether this is a navigation to the root page. |
| {boolean} | oControlEvent.getParameters.isBackToPage | Determines whether this was a navigation to a specific page. |
| {string} | oControlEvent.getParameters.direction | Determines how the navigation was triggered, possible values are "to", "back", "backToPage", and "backToTop". |
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.
| {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 |
| {function} | Created class / constructor function |
| {sap.ui.base.Metadata} | Metadata object describing this class |
pages. | {sap.m.QuickViewPage} | oPage | the page to add; if empty, nothing is inserted |
| {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |
fnFunction to the afterNavigate event of this sap.m.QuickViewBase. 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.QuickViewBase itself.
The event is fired when navigation between two pages has completed. In case of animated transitions this event is fired with some delay after the "navigate" event.
| {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.QuickViewBase itself |
| {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |
fnFunction to the navigate event of this sap.m.QuickViewBase. 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.QuickViewBase itself.
The event is fired when navigation between two pages has been triggered. The transition (if any) to the new page has not started yet. This event can be aborted by the application with preventDefault(), which means that there will be no navigation.
| {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.QuickViewBase itself |
| {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |
pages to model data. See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.
| {object} | oBindingInfo | The binding information |
| {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |
pages. | {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |
fnFunction from the afterNavigate event of this sap.m.QuickViewBase. The passed function and listener object must match the ones used for event registration.
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
| {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |
fnFunction from the navigate event of this sap.m.QuickViewBase. The passed function and listener object must match the ones used for event registration.
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
| {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |
afterNavigate to attached listeners. Expects the following event parameters:
fromof typesap.ui.core.ControlDetermines the page, which has been displayed before navigation.fromIdof typestringDetermines the ID of the page, which has been displayed before navigation.toof typesap.ui.core.ControlDetermines the page, which is now displayed after navigation.toIdof typestringDetermines the ID of the page, which is now displayed after navigation.firstTimeof typebooleanDetermines whether the "to" page (a control with the ID of the page, which has been navigated to) has not been displayed/navigated to before.isToof typebooleanDetermines whether this was a forward navigation.isBackof typebooleanDetermines whether this was a back navigation.isBackToTopof typebooleanDetermines whether this was a navigation to the root page.isBackToPageof typebooleanDetermines whether this was a navigation to a specific page.directionof typestringDetermines how the navigation was triggered, possible values are "to", "back", "backToPage", and "backToTop".isTopPageof typebooleanDetermines whether this is a navigation to the top page.
| {Map} | mArguments? | The arguments to pass along with the event |
| {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |
navigate to attached listeners. Listeners may prevent the default action of this event by using the preventDefault-method on the event object.
Expects the following event parameters:
fromof typesap.ui.core.ControlThe page which was displayed before the current navigation.fromIdof typestringThe ID of the page which was displayed before the current navigation.toof typesap.ui.core.ControlThe page which will be displayed after the current navigation.toIdof typestringThe ID of the page which will be displayed after the current navigation.firstTimeof typebooleanDetermines whether the "to" page (a control with the ID of the page which is currently navigated to) has not been displayed/navigated to before.isToof typebooleanDetermines whether this is a forward navigation.isBackof typebooleanDetermines whether this is a back navigation.isBackToTopof typebooleanDetermines whether this is a navigation to the root page.isBackToPageof typebooleanDetermines whether this was a navigation to a specific page.directionof typestringDetermines how the navigation was triggered, possible values are "to", "back", "backToPage", and "backToTop".
| {Map} | mArguments? | The arguments to pass along with the event |
| {boolean} | Whether or not to prevent the default action |
pages. Displays a page header, object icon or image, object name with short description, and object information divided in groups
| {sap.m.QuickViewPage[]} |
sap.m.QuickViewPage in the aggregation pages. and returns its index if found or -1 otherwise. | {sap.m.QuickViewPage} | oPage | The page whose index is looked for |
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
pages. | {sap.m.QuickViewPage} | oPage | the page to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the page should be inserted at; for a negative value of iIndex, the page is inserted at position 0; for a value greater than the current size of the aggregation, the page is inserted at the last position |
| {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |
pages. Additionally, it unregisters them from the hosting UIArea.
| {sap.m.QuickViewPage[]} | An array of the removed elements (might be empty) |
pages. | {int|string|sap.m.QuickViewPage} | vPage | The pageto remove or its index or id |
| {sap.m.QuickViewPage} | The removed page or null |
pages from model data. | {sap.m.QuickViewBase} | Reference to this in order to allow method chaining |