Articles in this section
Category / Section

What are the events available in the ejm core and the parameter definitions?

11 mins read

In Mobile core, the available events are as follows.

  1. viewbeforeload
  2. viewload
  3. viewloadfailed
  4. viewbeforetransfer
  5. appfrompageanimationend
  6. apptopageanimationend
  7. viewtransfer
  8. viewtransferfailed

The following are the explanation of the parameters.

Events

Arguments (data)

viewbeforeload

  1. absUrl- Gets the absolute URL.
  2. Options:
  • changeHash- Specifies the new hash label to be appended to the URL.
  • fromPage- Specifies the form page as the object.
  • hashMonitoring- Specifies whether the State maintenance is enabled or not.
  • pageContainer- Specifies the viewport as the object.
  • reloadSamePage- Specifies whether the same page is to reload or not.
  • Reverse- Specifies the reverse direction of the current transition when it is set to true.
  • Transition- Specifies the type of transition effects like slide, pop, and turn.
  1. relUrl- Gets the relative URL.
  2. toPage- To page navigation.

viewload

  1. absUrl- Gets the absolute URL.
  2. currentPage- Specifies the Navigation to the page as an object.
  3. Options :
  • changeHash- Specifies the new hash label that is to be appended to the URL.
  • fromPage- Specifies the from page as an object.
  • hashMonitoring- Specifies whether the State maintenance is enabled or not.
  • pageContainer- Specifies the viewport as the object.
  • reloadSamePage- Specifies whether the same page is to reload or not.
  • Reverse- Specifies the reverse direction of the current transition when it is set to true.
  • Transition- Specifies the type of transition effects like slide, pop, and turn.
  1. relUrl- Gets the relative URL.
  2. textStatus- Specifies the Ajax status.
  3. toPage- To page navigation
  4. xhr- Specifies the Ajax xhr Object.

viewloadfailed

  1. absUrl- Gets the absolute URL.
  2. currentPage- Specifies the Navigation to the page as an object.
  3. Options:   
  • changeHash- Specifies the new hash label to be appended to the URL.
  • fromPage- Specifies the from page as an object
  • hashMonitoring- Specifies whether the State maintenance is enabled or not.
  • pageContainer- Specifies the viewport as an object.
  • reloadSamePage- Specifies whether the same page is to reload or not.
  • Reverse- Specifies the reverse direction of the current transition when it is set to true.
  • Transition- Specifies the type of transition effects like slide, pop, and turn.
  1. relUrl- Gets the relative URL.
  2. textStatus- Specifies the Ajax status.
  3. toPage- To page navigation.
  4. xhr- Specifies the Ajax xhr Object.
  5. errorThrown- Specifies the Error thrown by the Ajax.

Viewbeforetransfer

  1. fromPage- Specifies the navigation from the page as an object.
  2. Options:
  • changeHash- Specifies the new hash label to be appended to the URL.
  • fromPage- Specifies the navigation  from page as an object.
  • hashMonitoring- Specifies whether the State maintenance is enabled or not.
  • pageContainer- Specifies the viewport as an object.
  • reloadSamePage- Specifies whether the same page is to reload or not.
  • Reverse- Specifies the reverse direction of the current transition when it is set to true.
  • transition- Specifies the type of transition effects like slide, pop, and turn.
  1. pageUrl- Specifies the pageUrl. This is the toPage URL.
  2. title- Specifies the Page Title.
  3. toPage- To page navigation.
  4. transition- Specifies the type of transition effects like slide, pop, and turn.

  appfrompageanimationend

  1. changeHash- Specifies the new hash label to be appended to the URL.
  2. fromPage- Specifies the from page as an object.
  3. hashMonitoring- Specifies whether the State maintenance is enabled or not.
  4. pageContainer- Specifies the viewport as an object.
  5. reloadSamePage- Specifies whether the same page is to reload or not.
  6. reverse- Specifies the reverse direction of the current transition when it is set to true.
  7. transition- Specifies the type of transition effects like slide, pop, and turn.

apptopageanimationend

  • data contains a page object.

viewtransfer

  • data contains a page object.

viewtransferfailed

  1. url -> Specifies the current URL.
  2. Options:
  • changeHash- Specifies the new hash label to be appended to the URL.
  • fromPage- Specifies the from page as an object.
  • hashMonitoring- Specifies whether the State maintenance is enabled or not.
  • pageContainer- Specifies the viewport as an object.
  • reloadSamePage- Specifies whether the same page is to reload or not.
  • reverse- Specifies the reverse direction of the current transition when it is set to true.
  • transition- Specifies the type of transition effects like slide, pop, and turn.

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied