任何人都可以帮我在导航时如何设置忙碌指示器吗?
谢谢,
Navya。
答案 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
}