Interface sap.m.NavContainerChildModule: sap/m/NavContainer
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) { // ... } });
Event Summary
AfterHide()This event is fired every time when the NavContainer has made this child control invisible.
AfterShow()This event is fired every time when the NavContainer has made this child control visible.
BeforeFirstShow()This event is fired before the NavContainer shows this child control for the first time.
Event Detail
AfterHide()
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.
Parameters:
{sap.ui.core.Control} | oEvent.srcControl | the NavContainer firing the event |
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.
Parameters:
{sap.ui.core.Control} | oEvent.srcControl | the NavContainer firing the event |
{object} | oEvent.data | the data object which has been passed with the "to" navigation, or an empty object |
{object} | oEvent.backData | the data object which has been passed with the back navigation, or an empty object |
BeforeFirstShow()
This event is fired before the NavContainer shows this child control for the first time.
Parameters:
{sap.ui.core.Control} | oEvent.srcControl | the NavContainer firing the event |
{object} | oEvent.data | the data object which has been passed with the "to" navigation, or an empty object |
{object} | oEvent.backData | the data object which has been passed with the back navigation, or an empty object |
BeforeHide()
This event is fired every time before the NavContainer hides this child control. In case of animated transitions this event is fired before the transition starts.
Parameters:
{sap.ui.core.Control} | oEvent.srcControl | the NavContainer firing the event |
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.
Parameters:
{sap.ui.core.Control} | oEvent.srcControl | the NavContainer firing the event |
{object} | oEvent.data | the data object which has been passed with the "to" navigation, or an empty object |
{object} | oEvent.backData | the data object which has been passed with the back navigation, or an empty object |