how is home button implemented in Fiori launchpad

Created by Jerry Wang, last modified on Sep 22, 2015

  • homeBtn
  • loadPersonalizedGroups
  • PageSets
  • PageBuildingService
Requirements: Realization of home button clicks

clipboard1

Chrome types of breakpoints in enable Mouse.click

clipboard2

clipboard3

clipboard4

this指向home button:

clipboard5

Here we can see the home button sap.ui.controller.navigateToHome achieved primarily through:

clipboard6

clipboard7

 
backToTop be achieved by a corresponding event handle:

clipboard8

event object detail as follows:

clipboard9

Here is a page list after preparation render user personalized:

clipboard10

load page group:

clipboard11

clipboard12

Odata use OData wrapper initiate a request to the background:

clipboard13

By XMLHttpRequest.send eventually sends the request to the background:

clipboard14


Guess you like

Origin blog.csdn.net/i042416/article/details/93304119