导航时忙碌的指示灯

时间:2016-04-21 13:30:01

标签: sapui5 sap-fiori

任何人都可以帮我在导航时如何设置忙碌指示器吗?

谢谢,

Navya。

1 个答案:

答案 0 :(得分:0)

// create one busy dialog  with global variable in the on init function

onInit: function() {
       busyDialog = new sap.m.BusyDialog();
}

// open the busy dialog in the navigation function
  onnextviewShow: function() {
        busyDialog.open
}
// inthe second view close the dialog on onRouteMatched

 onRouteMatched: function() {
          // write code what ever u want to load in this view
          //close the dialog after that
         busyDialog.close
}