IBM Worklight 6.1 - How to customize WL.BusyIndica

2019-09-15 16:07发布

I am using busyindicator in worklight 6.1 version for ios environment and want to know how to increase height and width for indicator. Code for showing busy indicator which i am using

busyInd = new WL.BusyIndicator('content', {text : 'Loading Data Please Wait....'});
busyInd.show()  //for showing indicator 
busyInd.hide()  // for Hiding indicator  

It is showing me busyIndicator but it is very small and text is too long which is not showing properly. I want to customize the height and width. Can i do that or is there any way to do that or it it there can you provide me syntax for that.

1条回答
forever°为你锁心
2楼-- · 2019-09-15 16:40

You need to use the boxLength property, as mentioned in the documentation for WL.BusyIndicator.

For example, in common\main.js:

var busy;

function wlCommonInit(){
    busy = new WL.BusyIndicator ("content", {text : 'Loading Data Please Wait....', boxLength: 255.5});
    busy.show();
}

P.S., There is a slight documentation issue here; I've opened a defect to correct it.

查看更多
登录 后发表回答