sapui5 - Busy Indicator not working - openui5 -


below code in view.js:

chart1 = new sap.ui.core.html({             content:  "<div id=\"sdtochart1\" style=\"width: 100%; \"></div>",             layoutdata: new sap.ui.layout.griddata({span: "xl12 l12 m12 s12"}),                                         })   

the below code placed in onafterrendering in controller.js

var bbusy = !chart1.isbusy();         chart1.setbusy(bbusy); 

the intention above show busy indicator till content of html loaded completely. dont see busy indicator.

the id of outermost html element has same id of html control. otherwise setbusy() function not find element add busy overlay div to.

chart1 = new sap.ui.core.html({         id: "sdtochart1",         content:  "<div id=\"sdtochart1\" style=\"width: 100%; \"></div>",         layoutdata: new sap.ui.layout.griddata({span: "xl12 l12 m12 s12"}),                                     })   

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -