Skip to Content

UI5 How to Detect the user moving away from View

Is there a specific UI5 related event or method to detect when the user moves away from a View, or changes view focus?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 03, 2017 at 06:34 PM

    what's your point?

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 03, 2017 at 07:51 PM

    not sure about the view, but you can check by adding a browser event(method available for all ui5 controls to add a browser event).

    the event will be mouseleave:

    https://developer.mozilla.org/en/docs/Web/Events/mouseleave

    maybe be try adding it for the sap.m.page..

    Best Regards,
    Mahesh

    Add comment
    10|10000 characters needed characters exceeded