interface sap.m.NavContainerChild

Control sample: sap.m.NavContainerChild
Visiblity: public
Available since: N/A
Module: sap/m/NavContainer
Application Component: CA-UI5-CTR

sap.m.NavContainerChild is an artificial interface with the only purpose to bear the documentation of pseudo events triggered by sap.m.NavContainer on its child controls when navigation occurs and child controls are displayed/hidden.

Interested parties outside the child control can listen to one or more of these events by registering a Delegate:

page1.addEventDelegate({
   onBeforeShow: function(evt) {
      // page1 is about to be shown; act accordingly - if required you can read event information from the evt object
   },
   onAfterHide: function(evt) {
      // ...
   }
});


Events Overview

Event Description
afterShow

This event is fired every time when the NavContainer has made this child control visible. In case of animated transitions this event is fired after the transition finishes. This control is now being displayed and not animated anymore.

beforeFirstShow

This event is fired before the NavContainer shows this child control for the first time.

beforeHide

This event is fired every time when the NavContainer has made this child control invisible. In case of animated transitions this event is fired after the transition finishes. This control is now no longer being displayed and not animated anymore.

beforeShow

This event is fired every time before the NavContainer shows this child control. In case of animated transitions this event is fired before the transition starts.